aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin.php b/admin.php
index 1f0aa0da5..f43d2f578 100644
--- a/admin.php
+++ b/admin.php
@@ -80,7 +80,7 @@ if (mt_rand(0,9)==0)
// ?page=plugin-community-pendings is an clean alias of
// ?page=plugin&section=community/admin.php&tab=pendings
-if (preg_match('/^plugin-([^-]*)(?:-(.*))?$/', $_GET['page'], $matches))
+if (isset($_GET['page']) and preg_match('/^plugin-([^-]*)(?:-(.*))?$/', $_GET['page'], $matches))
{
$_GET['page'] = 'plugin';
$_GET['section'] = $matches[1].'/admin.php';