From df3aee92107a094659677c1511635b7e0098b93e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 9 Nov 2015 19:21:19 +0000 Subject: [PATCH] fix link-widget with fixed app returned array(0) instead of 0 for nothing selected, caused by r54196 --- etemplate/inc/class.etemplate_widget_link.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_link.inc.php b/etemplate/inc/class.etemplate_widget_link.inc.php index a1467090da..977b94a25f 100644 --- a/etemplate/inc/class.etemplate_widget_link.inc.php +++ b/etemplate/inc/class.etemplate_widget_link.inc.php @@ -300,7 +300,7 @@ class etemplate_widget_link extends etemplate_widget $value = $value_in =& self::get_array($content, $form_name); // keep values added into request by other ajax-functions, eg. files draged into htmlarea (etemplate_widget_vfs) - if (!$value['to_id']) + if ((!$value || !$value['to_id']) && is_array($expand['cont'][$this->id]) && !empty($expand['cont'][$this->id]['to_id'])) { $value['to_id'] = $expand['cont'][$this->id]['to_id']; }