Skip to content

Commit

Permalink
Fixed exception message for Arr:elements
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed May 25, 2011
1 parent e46257e commit 23a1ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/arr.php
Expand Up @@ -153,9 +153,9 @@ public static function elements($array, $keys, $default = false)
{
$return = array();

if ( ! is_array($keys) or ! is_array($keys))
if ( ! is_array($array) or ! is_array($keys))
{
throw new \InvalidArgumentException('Arr::elements() - $keys must be an array.');
throw new \InvalidArgumentException('Arr::elements() - $keys and $array must be arrays.');
}

foreach ($keys as $key)
Expand Down

0 comments on commit 23a1ad3

Please sign in to comment.