aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}