Skip to content

Commit

Permalink
Merge pull request Indatus#14 from bkuhl/config-array-error
Browse files Browse the repository at this point in the history
Config array error
  • Loading branch information
bkuhl committed Jul 25, 2014
2 parents 615a259 + 8c72f3a commit 3aed4d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public function error(BaseResponse $response)
protected function matchesStatus($option, $status)
{
$configValue = Config::get($option);
if ($status == $configValue || Config::contains($option, $status)) {
return true;
if (is_array($configValue)) {
return Config::contains($option, $status);
}

return Str::is($configValue, $status);
Expand Down

0 comments on commit 3aed4d7

Please sign in to comment.