mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Don't treat numeric category names as IDs
This commit is contained in:
parent
5202d0db2d
commit
93b9d99cd5
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user