diff --git a/phpgwapi/inc/class.xmlrpc_server.inc.php b/phpgwapi/inc/class.xmlrpc_server.inc.php index 516d0f3b91..ffc3c8ccda 100644 --- a/phpgwapi/inc/class.xmlrpc_server.inc.php +++ b/phpgwapi/inc/class.xmlrpc_server.inc.php @@ -81,7 +81,7 @@ $cats = array(); foreach($xcats as $cat => $name) { - if ($id = $GLOBALS['phpgw']->categories->id2name($name)) + if ($id = $GLOBALS['phpgw']->categories->name2id($name)) { // existing cat-name use the id $cat = $id;