Fixed: Anrechnunglib returning values, Adapted error messages

Fixed: method getData in Controller was producing wrong returning message.
Fixed by removing, as library is returning boolean value now.

Adapted few error functions to be more generic and bilingual.

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-03-29 18:48:26 +02:00
committed by cris-technikum
parent 287b961697
commit d183dda815
5 changed files with 37 additions and 18 deletions
+3 -3
View File
@@ -546,10 +546,10 @@ class AnrechnungLib
if ($this->ci->db->trans_status() === false)
{
$this->ci->db->trans_rollback();
return error($result->msg, EXIT_ERROR);
return false;
}
return success(true); // recommended
return true; // recommended
}
/**
@@ -605,7 +605,7 @@ class AnrechnungLib
if ($this->ci->db->trans_status() === false)
{
$this->ci->db->trans_rollback();
return error($result->msg, EXIT_ERROR);
return false;
}
return true; // recommended