mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-22 02:41:50 +02:00
fix PHP Deprecated: stripos(): Non-string needles will be interpreted as strings in the future
This commit is contained in:
parent
7617aae9d0
commit
3a88aedce1
@ -587,7 +587,7 @@ class Storage extends Storage\Base
|
||||
// Check to make sure our order by doesn't have aliases that won't work
|
||||
else if (stripos($col, ' AS ') !== false && $order_by)
|
||||
{
|
||||
list($value, $alias) = explode(' AS ', $col);
|
||||
list($value, $alias) = preg_split('/ AS /i', $col);
|
||||
if(stripos($order_by, $alias) !== FALSE && stripos($value, $this->table_name) === FALSE)
|
||||
{
|
||||
$order_by = str_replace($alias, $value, $order_by);
|
||||
|
Loading…
x
Reference in New Issue
Block a user