mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 01:59:19 +01:00
fix non-fatal PHP Parse error, when $j was used eg. in onload
This commit is contained in:
parent
ff5c1e83a9
commit
b6f628a66d
@ -225,7 +225,9 @@ class boetemplate extends soetemplate
|
||||
$name = str_replace($matches[3],$value,$name);
|
||||
}
|
||||
}
|
||||
if (eval($code='$name = "'.str_replace(array('\\', '"'), array('\\\\', '\\"'), $name).'";') === false)
|
||||
if (eval($code='$name = "'.str_replace(array('\\', '"'), array('\\\\', '\\"'),
|
||||
// fix non-fatal PHP Parse error, when $j was used eg. in onload
|
||||
str_replace(array('$j.', '$j('), array('jQuery.', 'jQuery('), $name)).'";') === false)
|
||||
{
|
||||
error_log(__METHOD__."(name='$name', c='$c', row=$row, c_='$c_', row_=$row_, ...) line ".__LINE__." ERROR parsing: $code");
|
||||
error_log(function_backtrace());
|
||||
|
Loading…
Reference in New Issue
Block a user