From 0129588d21d4bb76ba6574015cf012db98b0c991 Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Wed, 17 Jun 2015 13:08:20 +0200 Subject: [PATCH] ensure we have an array --- Lib/Formatter/Html.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/Formatter/Html.php b/Lib/Formatter/Html.php index 1cf1caf..9d27240 100644 --- a/Lib/Formatter/Html.php +++ b/Lib/Formatter/Html.php @@ -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 = '';