diff --git a/models/pictsharemodel.php b/models/pictsharemodel.php index 85430da..ac806c0 100644 --- a/models/pictsharemodel.php +++ b/models/pictsharemodel.php @@ -700,7 +700,7 @@ class PictshareModel extends Model } } - if(count($hashes)>1) + if(is_array($hashes) && count($hashes)>1) { $albumlink = DOMAINPATH.PATH.implode('/',$hashes); $o.='

Album link

'.$albumlink.'';