Skip to content

Commit

Permalink
Merge pull request #143 from mstephens/master
Browse files Browse the repository at this point in the history
Ensure the array keys actually exist in setting arguements
  • Loading branch information
omniphx authored Mar 15, 2017
2 parents 0087fc3 + 062ead3 commit 5c72d1a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Omniphx/Forrest/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,12 @@ private function setOptions($arguments) {
$options = [];
if (empty($arguments)) return $options;

$this->setArgument($arguments[0], $options);
$this->setArgument($arguments[1], $options);
if(!empty($arguments[0])) {
$this->setArgument($arguments[0], $options);
}
if(!empty($arguments[1])) {
$this->setArgument($arguments[1], $options);
}

return $options;
}
Expand Down

0 comments on commit 5c72d1a

Please sign in to comment.