diff --git a/h5p.classes.php b/h5p.classes.php index af78c0e..4b2b3a4 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2546,7 +2546,7 @@ class H5PCore { $response = array( 'success' => TRUE ); - if ($message !== NULL) { + if ($data !== NULL) { $response['data'] = $data; } self::printJson($response);