Bugfix: Check if library json is valid

moodle-rc3
Frode Petterson 2016-07-08 11:08:47 +02:00 committed by GitHub
parent 406a55be5c
commit 3d14588160
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class H5PDevelopment {
}
$library = json_decode($libraryJSON, TRUE);
if ($library === FALSE) {
if ($library === NULL) {
continue; // Invalid JSON.
}