use count() instead of sizeof()

(cherry picked from commit 774dd6d5e3)
This commit is contained in:
Mario Vavti 2018-12-19 10:08:28 +00:00 committed by Mario
parent 1b5175d018
commit 4f08f4b84c

View File

@ -139,7 +139,7 @@ class Linkinfo extends \Zotlabs\Web\Controller {
$image = ""; $image = "";
if(is_array($siteinfo["images"]) && (sizeof($siteinfo["images"]) > 0)){ if(is_array($siteinfo["images"]) && count($siteinfo["images"])){
/* Execute below code only if image is present in siteinfo */ /* Execute below code only if image is present in siteinfo */
$total_images = 0; $total_images = 0;