]> git.mxchange.org Git - friendica.git/commitdiff
Also here (was committed in other branch, too. :-( )
authorRoland Häder <roland@mxchange.org>
Tue, 20 Dec 2016 10:02:57 +0000 (11:02 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 20 Dec 2016 10:02:57 +0000 (11:02 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
mod/events.php

index bb9cc3c52e28d3a661bc42ed9bcb7d6212789144..44e6dd4cf0f6f6eb294487dcd8e263734b8f08ea 100644 (file)
@@ -191,31 +191,34 @@ function events_content(&$a) {
                return;
        }
 
-       if($a->argc == 1)
+       if ($a->argc == 1) {
                $_SESSION['return_url'] = App::get_baseurl() . '/' . $a->cmd;
+       }
 
-       if(($a->argc > 2) && ($a->argv[1] === 'ignore') && intval($a->argv[2])) {
+       if (($a->argc > 2) && ($a->argv[1] === 'ignore') && intval($a->argv[2])) {
                $r = q("update event set ignore = 1 where id = %d and uid = %d",
                        intval($a->argv[2]),
                        intval(local_user())
                );
        }
 
-       if(($a->argc > 2) && ($a->argv[1] === 'unignore') && intval($a->argv[2])) {
+       if (($a->argc > 2) && ($a->argv[1] === 'unignore') && intval($a->argv[2])) {
                $r = q("update event set ignore = 0 where id = %d and uid = %d",
                        intval($a->argv[2]),
                        intval(local_user())
                );
        }
 
-       if ($a->theme_events_in_profile)
+       if ($a->theme_events_in_profile) {
                nav_set_selected('home');
-       else
+       } else {
                nav_set_selected('events');
+       }
 
        $editselect = 'none';
-       if( feature_enabled(local_user(), 'richtext') )
+       if ( feature_enabled(local_user(), 'richtext') ) {
                $editselect = 'textareas';
+       }
 
        // get the translation strings for the callendar
        $i18n = get_event_strings();