|
@@ -31,7 +31,8 @@ function modifyCategory($category_id, $catOptions)
|
|
|
$catUpdates = array();
|
|
|
$catParameters = array();
|
|
|
|
|
|
- call_integration_hook('integrate_pre_modify_category', array($category_id, &$catOptions));
|
|
|
+ $cat_id = $category_id;
|
|
|
+ call_integration_hook('integrate_pre_modify_category', array($cat_id, &$catOptions));
|
|
|
|
|
|
// Wanna change the categories position?
|
|
|
if (isset($catOptions['move_after']))
|
|
@@ -93,7 +94,8 @@ function modifyCategory($category_id, $catOptions)
|
|
|
$catParameters['is_collapsible'] = $catOptions['is_collapsible'] ? 1 : 0;
|
|
|
}
|
|
|
|
|
|
- call_integration_hook('integrate_modify_category', array($category_id, &$catUpdates, &$catParameters));
|
|
|
+ $cat_id = $category_id;
|
|
|
+ call_integration_hook('integrate_modify_category', array($cat_id, &$catUpdates, &$catParameters));
|
|
|
|
|
|
// Do the updates (if any).
|
|
|
if (!empty($catUpdates))
|