Skip to content

Commit

Permalink
coding standards elseif
Browse files Browse the repository at this point in the history
  • Loading branch information
robmcvey committed Mar 13, 2015
1 parent 2ba9f3b commit b880714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/JsonView.php
Expand Up @@ -161,7 +161,7 @@ protected function _serialize($serialize) {
$error = __('JSON encoding failed: Error code %s', json_last_error());
}
throw new CakeException($error);
} else if ($json === false) {
} elseif ($json === false) {
throw new CakeException(__('Failed to parse JSON'));
}
return $json;
Expand Down

0 comments on commit b880714

Please sign in to comment.