From 18de44eb954ed782861b20bec9a41edb778c5509 Mon Sep 17 00:00:00 2001 From: Adnan RIHAN Date: Wed, 6 Jul 2016 23:11:21 +0200 Subject: [PATCH] Update Abstract.php `array_shift()` expects a reference --- Cpanel/Service/Abstract.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cpanel/Service/Abstract.php b/Cpanel/Service/Abstract.php index c0f1efe..a183b41 100644 --- a/Cpanel/Service/Abstract.php +++ b/Cpanel/Service/Abstract.php @@ -515,7 +515,8 @@ protected function arrayType($arr) ); } ksort($arr); - $fkey = array_shift(array_keys($arr)); + $keys = array_keys($arr); + $fkey = array_shift($keys); if (is_int($fkey)) { return self::API1ARGS; } @@ -617,4 +618,4 @@ public function setHash($hash) return $this; } } -?> \ No newline at end of file +?>