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

SVN:2.2.0[3932]
This commit is contained in:
Denis Flaven
2016-02-29 16:22:23 +00:00
parent 1ee8044690
commit 7f7ff19233

View File

@@ -4818,9 +4818,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);
}