From 3b1ce046084bf0a30570eaead5f66b5cee3b1cec Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 21 Jul 2016 12:51:32 -0600 Subject: [PATCH] Avoid a Illegal string offset warning from link-entry widgets when they have only-app attribute set Happened on infologs added from projectmanager element list --- api/src/Etemplate/Widget/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Link.php b/api/src/Etemplate/Widget/Link.php index 7a8a0eee4d..ab567dd6e0 100644 --- a/api/src/Etemplate/Widget/Link.php +++ b/api/src/Etemplate/Widget/Link.php @@ -317,7 +317,7 @@ class 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 (Vfs) - if ((!$value || !$value['to_id']) && is_array($expand['cont'][$this->id]) && !empty($expand['cont'][$this->id]['to_id'])) + if ((!$value || is_array($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']; }