mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
Code optimization for speed and reduced memory usage.
This commit is contained in:
@@ -639,7 +639,7 @@ class admin_log_form_ui extends e_admin_form_ui
|
||||
$text = str_replace("<br />","\n",$text);
|
||||
$text = str_replace("\","/",$text);
|
||||
|
||||
if(substr($text,0,2) == '\n') // cleanup (not sure of the cause)
|
||||
if(strpos($text,'\n') === 0) // cleanup (not sure of the cause)
|
||||
{
|
||||
$text = substr($text,2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user