Skip to content

Commit

Permalink
Fix error with options.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 13, 2012
1 parent 176ec2d commit 579aff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/TimeHelper.php
Expand Up @@ -360,7 +360,7 @@ public function timeAgoInWords($dateTime, $options = array()) {
$element = null;
$stringDate = '';

if (!empty($options['element'])) {
if (is_array($options) && !empty($options['element'])) {
$element = array(
'tag' => 'span',
'class' => 'time-ago-in-words',
Expand Down

0 comments on commit 579aff5

Please sign in to comment.