(retrofit from trunk) Optimization/bug (!): Never use the whole object as a placeholder in ApplyParams !!

SVN:2.1.1[3933]
This commit is contained in:
Denis Flaven
2016-02-29 16:26:18 +00:00
parent 6ceab2ab5e
commit 17e49dcc55

View File

@@ -5463,9 +5463,11 @@ abstract class MetaModel
continue; // Ignore this non-scalar value
}
}
$aSearches[] = '$'.$sSearch.'$';
$aReplacements[] = (string) $replace;
else
{
$aSearches[] = '$'.$sSearch.'$';
$aReplacements[] = (string) $replace;
}
}
return str_replace($aSearches, $aReplacements, $sInput);
}