merged 2 if() into one as requested by CR
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
2a480df6fa
commit
de5125a4c7
|
@ -1271,13 +1271,10 @@ 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) {
|
||||
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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($_GET['order'] === 'posted') {
|
||||
$order = array(t('Show Newest First'), 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album));
|
||||
|
|
Loading…
Reference in New Issue
Block a user