Skip to content

Commit

Permalink
Update lib/Config/Config.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nocive committed Aug 2, 2012
1 parent 335feca commit 8b025d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Config/Config.php
Expand Up @@ -55,13 +55,13 @@ public function Set()
$args = func_get_args();
$argc = func_num_args();

if ($argc != 1 && $argc != 3) {
if ($argc != 1 && $argc != 2) {
throw new InvalidArgumentException( 'Wrong number of parameters' );
}

if ($argc === 1 && is_array( $args[0] )) {
if ($argc == 1 && is_array( $args[0] )) {
$vars = $args[0];
} elseif ($argc === 2) {
} elseif ($argc == 2) {
$vars = array_combine( array( $args[0] ), array( $args[1] ) );
}

Expand Down

0 comments on commit 8b025d8

Please sign in to comment.