Fix error with options.

This commit is contained in:
mark_story 2012-05-12 22:35:49 -04:00
parent 176ec2df0c
commit 579aff5ad3

View file

@ -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',