Skip to content

Commit

Permalink
Merge pull request #529 from x-team/hotfix-extension-failure-check
Browse files Browse the repository at this point in the history
Bail early if no extension data has been found
  • Loading branch information
lukecarbis committed May 15, 2014
2 parents 794c8a9 + 6c3f102 commit 19d1f3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ function extensions_display_body( $extensions ) {
* @return array
*/
function prepare_extensions_for_js( $extensions ) {
if ( false === $extensions ) {
return array();
}

$prepared_extensions = array();

foreach ( (array) $extensions as $extension ) {
Expand Down

0 comments on commit 19d1f3a

Please sign in to comment.