Fix arg type to preg_replace() with cast

This commit is contained in:
MDW 2024-03-19 22:03:55 +01:00
parent dac3eba397
commit 90b41360dc
No known key found for this signature in database

View File

@ -703,8 +703,8 @@ if (empty($reshook)) {
$object->setCategories($categories);
if (!empty($backtopage)) {
$backtopage = preg_replace('/__ID__/', $object->id, $backtopage); // New method to autoselect parent project after a New on another form object creation
$backtopage = preg_replace('/--IDFORBACKTOPAGE--/', $object->id, $backtopage); // New method to autoselect parent after a New on another form object creation
$backtopage = preg_replace('/__ID__/', (string) $object->id, $backtopage); // New method to autoselect parent project after a New on another form object creation
$backtopage = preg_replace('/--IDFORBACKTOPAGE--/', (string) $object->id, $backtopage); // New method to autoselect parent after a New on another form object creation
if (preg_match('/\?/', $backtopage)) {
$backtopage .= '&productid='.$object->id; // Old method
}