mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix error with options.
This commit is contained in:
parent
176ec2df0c
commit
579aff5ad3
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue