From 257fb4d03657bb604ffdf8bc54abb53a4e21f72e Mon Sep 17 00:00:00 2001 From: Molkobain Date: Fri, 8 Feb 2019 15:35:51 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20N=C2=B02019=20Fix=20empty=20error=20mes?= =?UTF-8?q?sage=20on=20object=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/coreexception.class.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/coreexception.class.inc.php b/core/coreexception.class.inc.php index 2a5a6e8a3..32734644b 100644 --- a/core/coreexception.class.inc.php +++ b/core/coreexception.class.inc.php @@ -151,7 +151,8 @@ class CoreCannotSaveObjectException extends CoreException if (count($this->aIssues) == 1) { - $sContent .= " {$this->aIssues[0]}"; + $sIssue = reset($this->aIssues); + $sContent .= " {$sIssue}"; } else {