]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
suggestion notifications
[friendica.git] / mod / photos.php
index 63bd46a6cbde1ddeb63795dfe7580e1a561bdf14..bf3299de07fb867a44e67326dc2033d7158825b4 100644 (file)
@@ -39,7 +39,7 @@ function photos_init(&$a) {
                        $o .= '</div>';
                        
                        $o .= '<div id="side-bar-photos-albums" class="widget">';
-                       $o .= '<h3>' . '<a href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '">' . t('Photo Albums') . '</a></h4>';
+                       $o .= '<h3>' . '<a href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '">' . t('Photo Albums') . '</a></h3>';
                                        
                        $o .= '<ul>';
                        foreach($albums as $album) {
@@ -49,9 +49,11 @@ function photos_init(&$a) {
 
                                if((! strlen($album['album'])) || ($album['album'] === 'Contact Photos') || ($album['album'] === t('Contact Photos')))
                                        continue;
-                               $o .= '<li>' . '<a href="photos/' . $a->argv[1] . '/album/' . bin2hex($album['album']) . '" />' . $album['album'] . '</a></li>'; 
+                               $o .= '<li>' . '<a href="photos/' . $a->argv[1] . '/album/' . bin2hex($album['album']) . '" >' . $album['album'] . '</a></li>'; 
                        }
                        $o .= '</ul>';
+
+                       $o .= '</div>';
                }
 
                if(! x($a->page,'aside'))
@@ -592,8 +594,8 @@ function photos_post(&$a) {
                $visible = 1;
        else
                $visible = 0;
-
-       if(intval($_REQUEST['not_visible']))
+       
+       if(intval($_REQUEST['not_visible']) || $_REQUEST['not_visible'] === 'true')
                $visible = 0;
 
        $str_group_allow   = perms2str(((is_array($_REQUEST['group_allow']))   ? $_REQUEST['group_allow']   : explode(',',$_REQUEST['group_allow'])));