Enhance website module

This commit is contained in:
Laurent Destailleur 2019-08-17 17:39:31 +02:00
parent 79f34074f7
commit b99b49c542
2 changed files with 4 additions and 1 deletions

View File

@ -983,3 +983,5 @@ PaymentInformation=Payment information
ValidFrom=Valid from
ValidUntil=Valid until
NoRecordedUsers=No users
NoArticlesFoundForTheKeyword=No article found for the keyword '<strong>%s</strong>'
NoArticlesFoundForTheCategory=No article found for the category

View File

@ -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;