mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
use str_replace() where possible
This commit is contained in:
parent
e51d3f26ab
commit
90dbed8d0e
@ -288,7 +288,7 @@
|
||||
//print "<!-- " . $GLOBALS['_xh'][$parser]['params'][$i]. "-->\n";
|
||||
$plist .= "$i - " . $GLOBALS['_xh'][$parser]['params'][$i]. " \n";
|
||||
$code = '$m->addParam(' . $GLOBALS['_xh'][$parser]['params'][$i] . ');';
|
||||
$code = ereg_replace(',,',",'',",$code);
|
||||
$code = str_replace(',,',",'',",$code);
|
||||
eval($code);
|
||||
}
|
||||
// uncomment this to really see what the server's getting!
|
||||
@ -373,7 +373,7 @@
|
||||
if ($sysCall)
|
||||
{
|
||||
$code = '$r=' . $dmap[$methName]['function'] . '($this, $m);';
|
||||
$code = ereg_replace(',,',",'',",$code);
|
||||
$code = str_replace(',,',",'',",$code);
|
||||
eval($code);
|
||||
}
|
||||
else
|
||||
@ -381,7 +381,7 @@
|
||||
if (function_exists($dmap[$methName]['function']))
|
||||
{
|
||||
$code = '$r =' . $dmap[$methName]['function'] . '($m);';
|
||||
$code = ereg_replace(',,',",'',",$code);
|
||||
$code = str_replace(',,',",'',",$code);
|
||||
eval($code);
|
||||
}
|
||||
else
|
||||
|
@ -169,8 +169,8 @@ in an alphabetic order.';
|
||||
{
|
||||
// don't even ask me _why_ these come padded with
|
||||
// hyphens, I couldn't tell you :p
|
||||
$a=ereg_replace('-', '', $a);
|
||||
$b=ereg_replace('-', '', $b);
|
||||
$a = str_replace('-', '', $a);
|
||||
$b = str_replace('-', '', $b);
|
||||
|
||||
if ($GLOBALS['agesorter_arr'][$a]==$agesorter[$b])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user