From b99b49c542efefab471b555891423c89f9fd6739 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 17 Aug 2019 17:39:31 +0200 Subject: [PATCH] Enhance website module --- htdocs/langs/en_US/main.lang | 2 ++ htdocs/website/class/websitepage.class.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 1775ab266bb..528e3ff79aa 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -983,3 +983,5 @@ PaymentInformation=Payment information ValidFrom=Valid from ValidUntil=Valid until NoRecordedUsers=No users +NoArticlesFoundForTheKeyword=No article found for the keyword '%s' +NoArticlesFoundForTheCategory=No article found for the category \ No newline at end of file diff --git a/htdocs/website/class/websitepage.class.php b/htdocs/website/class/websitepage.class.php index 417a1bfc305..23fd1842c89 100644 --- a/htdocs/website/class/websitepage.class.php +++ b/htdocs/website/class/websitepage.class.php @@ -340,7 +340,8 @@ class WebsitePage extends CommonObject return $records; } else { - $this->errors[] = 'Error ' . $this->db->lasterror(); + $this->error = 'Error ' . $this->db->lasterror(); + $this->errors[] = $this->error; dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR); return -1;