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 +?>