aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-11-16 21:26:29 +0000
committerplegall <plg@piwigo.org>2005-11-16 21:26:29 +0000
commitdb2ac75bb6f219d858bf704ee09dedb111e66f10 (patch)
treefe9884a92ed3d9a34fee16f1dd7a343f9b00ee23
parentf05a541c55e93d10de1919e6e701aff4489be7b1 (diff)
- merge trunc r933:934 into branch 1.4 (bug 207 fixed)
git-svn-id: http://piwigo.org/svn/branches/branch-1_4@936 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--picture.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/picture.php b/picture.php
index 71cc36676..d5c523b6c 100644
--- a/picture.php
+++ b/picture.php
@@ -31,6 +31,12 @@ define('PHPWG_ROOT_PATH','./');
include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
//-------------------------------------------------- access authorization check
check_cat_id( $_GET['cat'] );
+
+if (!isset($page['cat']))
+{
+ die($lang['access_forbiden']);
+}
+
check_login_authorization();
if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )
{