aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-12-19 10:08:28 +0000
committerMario <mario@mariovavti.com>2018-12-22 20:20:58 +0100
commit4f08f4b84cae885dc3ce37be7761546fddeb311c (patch)
treea08879f20157d4274d21ac7817d77b784c2490dd
parent1b5175d01834796ee80134fd214ada71dd409dbd (diff)
downloadvolse-hubzilla-4f08f4b84cae885dc3ce37be7761546fddeb311c.tar.gz
volse-hubzilla-4f08f4b84cae885dc3ce37be7761546fddeb311c.tar.bz2
volse-hubzilla-4f08f4b84cae885dc3ce37be7761546fddeb311c.zip
use count() instead of sizeof()
(cherry picked from commit 774dd6d5e333ac1988f1f3d830627cd7af68908e)
-rw-r--r--Zotlabs/Module/Linkinfo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Linkinfo.php b/Zotlabs/Module/Linkinfo.php
index 8b7defa39..32b4c0281 100644
--- a/Zotlabs/Module/Linkinfo.php
+++ b/Zotlabs/Module/Linkinfo.php
@@ -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;