Skip to content
Permalink
Browse files

Fix error with options.

  • Loading branch information...
markstory committed May 13, 2012
1 parent 176ec2d commit 579aff5ad38f19643474dceaea7eee9d1d285408
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/Helper/TimeHelper.php
@@ -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',

0 comments on commit 579aff5

Please sign in to comment.
You can’t perform that action at this time.