diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-12-19 10:08:28 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-12-22 20:20:58 +0100 |
commit | 4f08f4b84cae885dc3ce37be7761546fddeb311c (patch) | |
tree | a08879f20157d4274d21ac7817d77b784c2490dd | |
parent | 1b5175d01834796ee80134fd214ada71dd409dbd (diff) | |
download | volse-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.php | 2 |
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; |