]> git.mxchange.org Git - friendica.git/commitdiff
merged 2 if() into one as requested by CR
authorRoland Haeder <roland@mxchange.org>
Thu, 30 Mar 2017 19:45:35 +0000 (21:45 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 30 Mar 2017 19:45:49 +0000 (21:45 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
mod/photos.php

index 1467dff343f4c74e1e595ee985f51dcab5f74c5a..92682f4437358fd5958b81c65126c7e812326574 100644 (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');
                        }
                }