aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-02-23 09:27:57 +0000
committerplegall <plg@piwigo.org>2011-02-23 09:27:57 +0000
commit31fab45f93d516ae4e160db637405dc20d278f23 (patch)
tree971f0ec06cfa762bef26c7bad3a30e0a2b14e49a
parente28cbddada5a2568e1f5e2a011d3c3bc660b2d48 (diff)
feature 2200: bug fixed when there is no ?page= in URL (on admin homepage)
git-svn-id: http://piwigo.org/svn/trunk@9358 68402e56-0260-453c-a942-63ccdbb3a9ee
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';