X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fphotos.php;h=b908234ab74631db72204a0f989bfa652945db84;hb=3488b937ead0b3988d1f22c632bc2cc81393249b;hp=c2b00c734587f012c8e5da17afb1c2412b55df4f;hpb=eaf81e5e66db1f722192005ff75bb5831c1912eb;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index c2b00c7345..b908234ab7 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -903,7 +903,7 @@ function photos_post(App $a) Worker::add(PRIORITY_HIGH, "Notifier", 'wall-new', $item_id); } - Addon::callHooks('photo_post_end', intval($item_id)); + Addon::callHooks('photo_post_end', $item_id); // addon uploaders should call "killme()" [e.g. exit] within the photo_post_end hook // if they do not wish to be redirected @@ -1053,7 +1053,7 @@ function photos_content(App $a) $albumselect = ''; $albumselect .= ''; - if (count($a->data['albums'])) { + if (!empty($a->data['albums'])) { foreach ($a->data['albums'] as $album) { if (($album['album'] === '') || ($album['album'] === 'Contact Photos') || ($album['album'] === L10n::t('Contact Photos'))) { continue;