use count() instead of sizeof()
This commit is contained in:
parent
339c9cceec
commit
774dd6d5e3
@ -139,7 +139,7 @@ class Linkinfo extends \Zotlabs\Web\Controller {
|
||||
|
||||
$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 */
|
||||
|
||||
$total_images = 0;
|
||||
|
Reference in New Issue
Block a user