Browse files

Fix a typo, return early when there is an error

  • Loading branch information...
1 parent d0a1f77 commit 060a430bf8fad34d2995fb60b71e2f9b2b63c5f1 @LegNeato LegNeato committed Apr 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 BugzillaQuery.class.php
View
3 BugzillaQuery.class.php
@@ -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);
}

0 comments on commit 060a430

Please sign in to comment.