Fix erroneous condition for array's all keys empty check

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
This commit is contained in:
Deven Bansod 2015-12-18 21:06:37 +05:30
parent 1ed3443c55
commit a3a9a4578c

View File

@ -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'])