From 3d14588160ef72d44098902aa0426c94267cf6eb Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Fri, 8 Jul 2016 11:08:47 +0200 Subject: [PATCH] Bugfix: Check if library json is valid --- h5p-development.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p-development.class.php b/h5p-development.class.php index 546ced0..6c891f9 100644 --- a/h5p-development.class.php +++ b/h5p-development.class.php @@ -78,7 +78,7 @@ class H5PDevelopment { } $library = json_decode($libraryJSON, TRUE); - if ($library === FALSE) { + if ($library === NULL) { continue; // Invalid JSON. }