mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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:
@@ -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'] ) )
|
||||
|
||||
Reference in New Issue
Block a user