diff --git a/resources/inc/class.resources_ui.inc.php b/resources/inc/class.resources_ui.inc.php index a37b55de40..2c5f9959c5 100755 --- a/resources/inc/class.resources_ui.inc.php +++ b/resources/inc/class.resources_ui.inc.php @@ -450,7 +450,7 @@ class resources_ui 'to_id' => $res_id, 'to_app' => 'resources' ); - } elseif ($accessory_of) { + } elseif ($accessory_of > 0) { // Pre-set according to parent $owner = $this->bo->read($accessory_of); $content['cat_id'] = $owner['cat_id'];