Completed
Push — master ( 5d8acc...ee8b95 )
by Christopher
36s queued 15s
created
public/old/includes/functions.auth.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $_SESSION['db_is_logged_in'] = true;
22 22
         $_SESSION['isAdmin'] = $row['isAdmin']; // Set the admin status to be carried across this session
23 23
         $_SESSION['userid'] = $row['id'];
24
-        $_SESSION['name'] = $row['firstName'].' '.$row['lastName'];
24
+        $_SESSION['name'] = $row['firstName'] . ' ' . $row['lastName'];
25 25
         $_SESSION['isBandAdmin'] = $row['isBandAdmin']; // Set the band admin status to be carried across this session
26 26
         $_SESSION['isEventEditor'] = $row['isEventEditor']; // Set the event editor status to be carried across this session
27 27
         $_SESSION['onlyShowUserEvents'] = $users_start_with_myevents; // 1 if users_start_with_myevents is set in settings, can be changed by user during session
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
         // admin section
35 35
         if ($_SESSION['isAdmin'] == 1) {
36
-            updateDatabase();                        //check for db updates
36
+            updateDatabase(); //check for db updates
37 37
             //$_SESSION['onlyShowUserEvents'] = '0';		//show all events for admin, regardless what settings say
38 38
         }
39 39
 
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
             $redirectFromSession = strip_tags($_SESSION['redirectUrl']);
52 52
             unset($_SESSION['redirectUrl']);
53 53
             // check is url is on same domain and prevents redirecting to logout page
54
-            if (strncmp(strtolower(siteSettings()->getSiteUrl().'/'), strtolower($redirectFromSession), strlen(siteSettings()->getSiteUrl()) + 1) == 0 && strpos($redirectFromSession, 'logout.php') === false) {
54
+            if (strncmp(strtolower(siteSettings()->getSiteUrl() . '/'), strtolower($redirectFromSession), strlen(siteSettings()->getSiteUrl()) + 1) == 0 && strpos($redirectFromSession, 'logout.php') === false) {
55 55
                 $redirectUrl = $redirectFromSession;
56 56
             }
57 57
         }
58
-        header('Location: '.$redirectUrl);
58
+        header('Location: ' . $redirectUrl);
59 59
         exit;
60 60
     }
61 61
 }
Please login to merge, or discard this patch.