remove each() as it's deprecated

This commit is contained in:
Bradley W. Dutton
2020-03-01 13:39:52 -08:00
parent 9393d0d5cd
commit cbd75bc72e
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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);