ensure we have an array
This commit is contained in:
@@ -41,6 +41,7 @@ class Html extends Formatter {
|
||||
// so take the first element of the 'result' array
|
||||
$func = key($data['result']);
|
||||
$data = reset($data['result']);
|
||||
$data = is_array($data) ? $data : array();
|
||||
$title = $func;
|
||||
|
||||
$content = '';
|
||||
|
||||
Reference in New Issue
Block a user