mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
bug 22 : can't create a virtual category at root (with a list of values as
parent category) git-svn-id: http://piwigo.org/svn/branches/release-1_3@389 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -63,7 +63,8 @@ if ( isset( $_POST['submit'] ) )
|
||||
if ( preg_match( '/^\s*$/', $_POST['virtual_name'] ) )
|
||||
array_push( $errors, $lang['cat_error_name'] );
|
||||
// does the uppercat id exists in the database ?
|
||||
if ( $_POST['associate'] == '' )
|
||||
if ( $_POST['associate'] == ''
|
||||
or $_POST['associate'] == '-1' )
|
||||
{
|
||||
$_POST['associate'] = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user