From b6833701d641406055951c77f0371476cee47cf0 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 16 Nov 2005 21:21:39 +0000 Subject: [PATCH] - merge trunc r933:934 into branch 1.5 (bug 207 fixed) git-svn-id: http://piwigo.org/svn/branches/branch-1_5@935 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/picture.php b/picture.php index e597b6f64..b41de7112 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'] ) ) {