Browse Source

merged 2 if() into one as requested by CR

Signed-off-by: Roland Haeder <roland@mxchange.org>
pull/3254/head
Roland Haeder 4 years ago
parent
commit
de5125a4c7
No known key found for this signature in database GPG Key ID: B72F8185C6C7BD78
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      mod/photos.php

+ 2
- 5
mod/photos.php View File

@ -1271,11 +1271,8 @@ function photos_content(App $a) {
}
}
} else {
/// @TODO merge else+if into elseif and 2 into one?
if (($album !== t('Profile Photos')) && ($album !== 'Contact Photos') && ($album !== t('Contact Photos'))) {
if ($can_post) {
$edit = array(t('Edit Album'), 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album) . '/edit');
}
if (($album !== t('Profile Photos')) && ($album !== 'Contact Photos') && ($album !== t('Contact Photos')) && $can_post) {
$edit = array(t('Edit Album'), 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album) . '/edit');
}
}


Loading…
Cancel
Save