diff --git a/lib/Cake/View/Helper/TimeHelper.php b/lib/Cake/View/Helper/TimeHelper.php index 95fc214d2..0c4042ee0 100644 --- a/lib/Cake/View/Helper/TimeHelper.php +++ b/lib/Cake/View/Helper/TimeHelper.php @@ -360,7 +360,7 @@ class TimeHelper extends AppHelper { $element = null; $stringDate = ''; - if (!empty($options['element'])) { + if (is_array($options) && !empty($options['element'])) { $element = array( 'tag' => 'span', 'class' => 'time-ago-in-words',