Commit:    dc3a9960e822229b518b3c3a267eb63cc6f204d3
Author:    Ferenc Kovacs <[email protected]>         Thu, 24 Jan 2013 00:57:16 
+0100
Parents:   f095feecf294a2c0af19a7233ce5e660d55dc7d8
Branches:  master

Link:       
http://git.php.net/?p=web/bugs.git;a=commitdiff;h=dc3a9960e822229b518b3c3a267eb63cc6f204d3

Log:
this is how you do it. stupid me.

Changed paths:
  M  include/functions.php


Diff:
diff --git a/include/functions.php b/include/functions.php
index 162cf24..2603c1a 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1718,21 +1718,12 @@ function response_header($title, $extraHeaders = '')
        
        if ($logged_in === 'developer') {
                $is_logged = true;
+               $username = $auth_user->handle;
        } else if (!empty($_SESSION['user'])) {
                $is_logged = true;
+               $username = $_SESSION['user'];
        }
 
-       if ($logged_in) {
-               $username = false;
-               if (!empty($auth_user->handle)) {
-                       $username = $auth_user->handle;
-               }
-               elseif (!empty($_SESSION['user']->handle)) {
-                       $username = $_SESSION['user']->handle;
-               }
-       }
-
-
        $_header_done   = true;
 
        header('Content-Type: text/html; charset=UTF-8');


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to