Spacing fixes. Don't do setServerInfo() in getServerInfo() cause we already reload...
authorsoranzo <soranzo>
Mon, 1 Aug 2005 22:16:15 +0000 (22:16 +0000)
committersoranzo <soranzo>
Mon, 1 Aug 2005 22:16:15 +0000 (22:16 +0000)
classes/Misc.php
servers.php

index 1abb323543cb825b95004d13d340b3eed913cc93..b191ffbd44dc48355db7f4160bea9474356174dd 100644 (file)
@@ -2,7 +2,7 @@
        /**
         * Class to hold various commonly used functions
         *
-        * $Id: Misc.php,v 1.109 2005/07/31 09:15:06 chriskl Exp $
+        * $Id: Misc.php,v 1.110 2005/08/01 22:16:15 soranzo Exp $
         */
         
        class Misc {
                                if ($server_id == $info['host'].':'.$info['port']) {
                                        // Automatically use shared credentials if available
                                        if (!isset($info['username']) && isset($_SESSION['sharedUsername'])) {
-                                               $info['username'] =     $_SESSION['sharedUsername'];
-                                               $info['password'] =     $_SESSION['sharedPassword'];
+                                               $info['username'] = $_SESSION['sharedUsername'];
+                                               $info['password'] = $_SESSION['sharedPassword'];
                                                $_reload_browser = true;
-                                               $this->setServerInfo(null, $info, $server_id);
                                        }
                                        
                                        return $info;
index ee1b65f8be77b9608d4759caf8fb31ffdfe7cc5b..8b731444a38da5e2dc39a792e15eeb165933c7d7 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage servers
         *
-        * $Id: servers.php,v 1.2 2005/05/02 15:47:24 chriskl Exp $
+        * $Id: servers.php,v 1.3 2005/08/01 22:16:15 soranzo Exp $
         */
 
        // Include application functions
@@ -18,7 +18,7 @@
                global $misc, $lang, $_reload_browser;
                
                $server_info = $misc->getServerInfo($_REQUEST['logoutServer']);
-               $misc->setServerInfo(null,null,$_REQUEST['logoutServer']);
+               $misc->setServerInfo(null, null, $_REQUEST['logoutServer']);
                doDefault(sprintf($lang['strlogoutmsg'], $server_info['desc']));
                
                $_reload_browser = true;