From 93b9d99cd5d6ab36c0965d61c3ac4991eaf7e81c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 25 Oct 2011 17:09:31 +0000 Subject: [PATCH] Don't treat numeric category names as IDs --- importexport/inc/class.importexport_helper_functions.inc.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/importexport/inc/class.importexport_helper_functions.inc.php b/importexport/inc/class.importexport_helper_functions.inc.php index 58567b2f74..7f62f2582a 100755 --- a/importexport/inc/class.importexport_helper_functions.inc.php +++ b/importexport/inc/class.importexport_helper_functions.inc.php @@ -179,11 +179,6 @@ class importexport_helper_functions { foreach ( $cat_names as $cat_name ) { $cat_name = trim($cat_name); if ( $cat_name == '' ) continue; - // Handle any IDs that slip in - if ( is_numeric($cat_name) && categories::id2name((int)$cat_name)) { - $cat_ids[] = (int)$cat_name; - continue; - } if ( ( $cat_id = $cats->name2id( $cat_name ) ) == 0 ) { $cat_id = $cats->add( array( 'name' => $cat_name,