Made getLastTabURL a bit more robust.
authorjollytoad <jollytoad>
Thu, 15 Jul 2004 09:55:00 +0000 (09:55 +0000)
committerjollytoad <jollytoad>
Thu, 15 Jul 2004 09:55:00 +0000 (09:55 +0000)
classes/Misc.php

index 501a1753f6b8c2689a1dee0b6ea32af80ab70312..4474e74062112eec60ed325af2d995420046313c 100644 (file)
@@ -2,7 +2,7 @@
        /**
         * Class to hold various commonly used functions
         *
-        * $Id: Misc.php,v 1.75 2004/07/15 09:52:20 jollytoad Exp $
+        * $Id: Misc.php,v 1.76 2004/07/15 09:55:00 jollytoad Exp $
         */
         
        class Misc {
                                        $tabs = $this->getNavTabs($section);
                        }
                        
-                       if (isset($_SESSION['webdbLastTab'][$section]))
+                       if (isset($_SESSION['webdbLastTab'][$section]) && isset($tabs[$_SESSION['webdbLastTab'][$section]]))
                                $tab = $tabs[$_SESSION['webdbLastTab'][$section]];
                        else
                                $tab = reset($tabs);