mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
remove each() as it's deprecated
This commit is contained in:
@@ -207,7 +207,7 @@ class locales_Core {
|
||||
|
||||
arsort($scored_locales);
|
||||
|
||||
list ($locale) = each($scored_locales);
|
||||
$locale = key($scored_locales);
|
||||
return $locale;
|
||||
}
|
||||
|
||||
|
||||
@@ -1183,7 +1183,8 @@ class Database_Builder_Core {
|
||||
|
||||
foreach ($this->order_by as $column => $order_by)
|
||||
{
|
||||
list($column, $direction) = each($order_by);
|
||||
$column = key($order_by);
|
||||
$direction = current($order_by);
|
||||
|
||||
$column = $this->db->quote_column($column);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user