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
This commit is contained in:
parent
e28cbddada
commit
31fab45f93
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ if (mt_rand(0,9)==0)
|
|||
|
||||
// ?page=plugin-community-pendings is an clean alias of
|
||||
// ?page=plugin§ion=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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue