Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cpanel/PublicAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Cpanel_PublicAPI extends Cpanel_Core_Object
* The class is a Singleton. The constructor, however is public due to
* inheritance from Cpanel_Core_Object.
*
* @param arrays $optsArray Option configuration data
* @param array $optsArray Option configuration data
*
* @return Cpanel_PublicAPI
* @throws Exception If instantiated directly. {@link getInstance()}
Expand Down
3 changes: 2 additions & 1 deletion Cpanel/Service/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down