aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_list.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-03-12 23:15:45 +0000
committerz0rglub <z0rglub@piwigo.org>2004-03-12 23:15:45 +0000
commit44dfda7a10608eb31d83fd92fd214eda320633fc (patch)
tree5bcebe8d1257d813acb5f023b30e1736ba5023bf /admin/cat_list.php
parentfc6b9d6a792e3748ef2e54a3f975f2b25c26d7c9 (diff)
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
Diffstat (limited to 'admin/cat_list.php')
-rw-r--r--admin/cat_list.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/cat_list.php b/admin/cat_list.php
index 02330faba..8226453d9 100644
--- a/admin/cat_list.php
+++ b/admin/cat_list.php
@@ -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;
}