mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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;
|
$element = null;
|
||||||
$stringDate = '';
|
$stringDate = '';
|
||||||
|
|
||||||
if (!empty($options['element'])) {
|
if (is_array($options) && !empty($options['element'])) {
|
||||||
$element = array(
|
$element = array(
|
||||||
'tag' => 'span',
|
'tag' => 'span',
|
||||||
'class' => 'time-ago-in-words',
|
'class' => 'time-ago-in-words',
|
||||||
|
|
Loading…
Reference in a new issue