[ticket/249] Fix codesniffer complaints in portal files
B3P-249
This commit is contained in:
@@ -424,7 +424,7 @@ class main_menu extends module_base
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* on move_down, switch position with next order_id...
|
||||
* on move_up, switch position with previous order_id...
|
||||
* move up means a lower ID, move down means a higher ID
|
||||
@@ -528,9 +528,9 @@ class main_menu extends module_base
|
||||
*
|
||||
* @return string Unserialized string
|
||||
*/
|
||||
private function utf_unserialize($serial_str)
|
||||
private function utf_unserialize($serial_str)
|
||||
{
|
||||
$out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $serial_str );
|
||||
return unserialize($out);
|
||||
$out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $serial_str);
|
||||
return unserialize($out);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user