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
This commit is contained in:
z0rglub 2004-01-21 22:14:47 +00:00
parent 1dea45e873
commit 54813d73b0

View file

@ -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'] ) )