Merge branch 'fix_linkinfo_warning' into 'dev'
check if we deal with an array before sizeof() See merge request hubzilla/core!1444
This commit is contained in:
commit
6d7fba6758
@ -139,7 +139,7 @@ class Linkinfo extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
$image = "";
|
$image = "";
|
||||||
|
|
||||||
if(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;
|
||||||
|
Reference in New Issue
Block a user