Updated: Code review changes implemented

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
shazar rahman
2026-09-11 16:51:34 +05:30
parent 96ff9be0df
commit 13330029d8
5 changed files with 8 additions and 8 deletions

View File

@@ -403,7 +403,7 @@ abstract class ModuleCore
// Install module and retrieve the installation id
$result = Db::getInstance()->insert($this->table, array('name' => $this->name, 'active' => 1, 'version' => $this->version));
if (!$result) {
$this->_errors[] = Tools::displayError('Technical error: PrestaShop could not install this module.');
$this->_errors[] = Tools::displayError('Technical error: QloApps could not install this module.');
return false;
}
$this->id = Db::getInstance()->Insert_ID();