From 54813d73b09ca960ced02775c281ddbc8cd45482 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Wed, 21 Jan 2004 22:14:47 +0000 Subject: bug correction : POST[associate] was always set even if not ! test also the emptiness of the var git-svn-id: http://piwigo.org/svn/branches/release-1_3@308 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/infos_images.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/infos_images.php') diff --git a/admin/infos_images.php b/admin/infos_images.php index fe77b4c71..087216f47 100644 --- a/admin/infos_images.php +++ b/admin/infos_images.php @@ -31,7 +31,7 @@ if ( isset( $page['cat'] ) ) //--------------------------------------------------- update individual options if ( isset( $_POST['submit'] ) ) { - if ( isset( $_POST['associate'] ) ) + if ( isset( $_POST['associate'] ) and $_POST['associate'] != '' ) { // does the uppercat id exists in the database ? if ( !is_numeric( $_POST['associate'] ) ) -- cgit v1.2.3