Index: trunk/extensions/Narayam/Narayam.hooks.php |
— | — | @@ -68,7 +68,9 @@ |
69 | 69 | |
70 | 70 | // Get user selected scheme from cookie |
71 | 71 | // TODO: use $wgRequest; |
72 | | - $lastScheme = $_COOKIE['narayam-scheme']; |
| 72 | + $lastScheme = isset($_COOKIE['narayam-scheme']) |
| 73 | + ? $_COOKIE['narayam-scheme'] |
| 74 | + : null; |
73 | 75 | // If user selected scheme is not in the array of schemes to be loaded |
74 | 76 | // Add it |
75 | 77 | if ( $lastScheme && !array_key_exists( $lastScheme, $schemes ) ) { |