Browse code

fix for Notice: Undefined index

Jimako authored on 2019/10/30 06:57:06
Showing 1 changed files
... ...
@@ -21,11 +21,11 @@
21 21
 // To read the license please visit http://www.gnu.org/copyleft/gpl.html
22 22
 // ----------------------------------------------------------------------
23 23
 
24
-if($_GET['action'] == "list") {
24
+if(isset($_GET['action']) && $_GET['action'] == "list") {
25 25
 	$current = "members";
26 26
 	$list = "members";
27 27
 }
28
-else if($_GET["list"] == "authors") $current = "authors";
28
+else if(isset($_GET['list']) && $_GET["list"] == "authors") $current = "authors";
29 29
 else $current = "members";
30 30
 
31 31
 include ("header.php");