Skip to content

Commit

Permalink
Fix a typo, return early when there is an error
Browse files Browse the repository at this point in the history
  • Loading branch information
LegNeato committed May 16, 2012
1 parent d0a1f77 commit 060a430
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BugzillaQuery.class.php
Expand Up @@ -111,8 +111,9 @@ protected function _set_options($query_options_raw) {
$this->options = json_decode($query_options_raw);
if( !$query_options_raw || !$this->options ) {
$this->error = 'Query options must be valid json';
return;
}
// Object is kinda userless, make it an array
// Object is kinda useless, make it an array
$this->options = get_object_vars($this->options);
}

Expand Down

0 comments on commit 060a430

Please sign in to comment.