Included Sales Pricing, Purchasing Prising, Cost update and Reorder Levels in tabs...
[fa-stable.git] / includes / session.inc
index 37591d3489e8bdbceffdb78b28eece26c6053966..27e6f8e6746e407ebc98471d7891b007aff20d7e 100644 (file)
@@ -451,11 +451,11 @@ if (strstr($_SERVER['PHP_SELF'], 'logout.php') == false){
                        // Incorrect password
                                login_fail();
                        }
-                       elseif(!$_SESSION['timeout']['post'])
+                       elseif(isset($_SESSION['timeout']) && !$_SESSION['timeout']['post'])
                        {
                                // in case of GET request redirect to avoid confirmation dialog 
                                // after return from menu option
-                               header("HTTP 1.1 303 See Other");
+                               header("HTTP/1.1 303 See Other");
                                header("Location: ".$_SESSION['timeout']['uri']);
                                exit();
                        }