Fix erroneous condition for array's all keys empty check
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
This commit is contained in:
parent
1ed3443c55
commit
a3a9a4578c
@ -17,7 +17,7 @@ echo !empty($id) ? ' id="' . $id . '"' : null;
|
||||
echo !empty($class) ? ' class="' . $class . '"' : null;
|
||||
?>>
|
||||
<?php
|
||||
if (!empty($url) && is_array($url)) : ?>
|
||||
if (is_array($url) && array_filter($url)) : ?>
|
||||
<a<?php echo !empty($url['href']) ? ' href="' . $url['href'] . '"' : null ?>
|
||||
<?php
|
||||
echo !empty($url['target'])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user