From 12c315abbcce6d74ea4376fbb3fe884c3520d54b Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 25 Feb 2021 11:56:40 -0700 Subject: [PATCH] Avoid xml parse error --- resources/inc/class.resources_ui.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/inc/class.resources_ui.inc.php b/resources/inc/class.resources_ui.inc.php index 9484d58cf5..34581bb7f2 100755 --- a/resources/inc/class.resources_ui.inc.php +++ b/resources/inc/class.resources_ui.inc.php @@ -537,6 +537,8 @@ class resources_ui } $search_options = array('accessory_of' => -1); + $sel_options['accessory_of'] = array(-1 => lang('none')) + (array)$this->bo->link_query('',$search_options); + $content['history'] = array( 'id' => $res_id, 'app' => 'resources', @@ -546,7 +548,6 @@ class resources_ui ) ); - $sel_options['accessory_of'] = array(-1 => lang('none')) + (array)$this->bo->link_query('',$search_options); if($res_id) unset($sel_options['accessory_of'][$res_id]); // $content['general|page|pictures|links'] = 'resources.edit_tabs.page'; //debug