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:
parent
1dea45e873
commit
54813d73b0
1 changed files with 1 additions and 1 deletions
|
@ -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'] ) )
|
||||
|
|
Loading…
Add table
Reference in a new issue