mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
Optimization/bug (!): Never use the whole object as a placeholder in ApplyParams !!
SVN:trunk[3931]
This commit is contained in:
@@ -4917,9 +4917,11 @@ abstract class MetaModel
|
|||||||
continue; // Ignore this non-scalar value
|
continue; // Ignore this non-scalar value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
$aSearches[] = '$'.$sSearch.'$';
|
{
|
||||||
$aReplacements[] = (string) $replace;
|
$aSearches[] = '$'.$sSearch.'$';
|
||||||
|
$aReplacements[] = (string) $replace;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return str_replace($aSearches, $aReplacements, $sInput);
|
return str_replace($aSearches, $aReplacements, $sInput);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user