correct checkIfExistingBewerberstatus

This commit is contained in:
cgfhtw
2024-08-07 15:37:43 +02:00
parent e89677c36d
commit 1fc7f9d3e8
3 changed files with 5 additions and 57 deletions
@@ -199,13 +199,14 @@ class PrestudentstatusCheckLib
*/
public function checkIfExistingBewerberstatus($prestudent_id)
{
$result = $this->_ci->PrestudentstatusModel->checkIfExistingBewerberstatus(
$prestudent_id
);
$result = $this->_ci->PrestudentstatusModel->loadWhere([
'prestudent_id' => $prestudent_id,
'status_kurzbz' => Prestudentstatus_model::STATUS_BEWERBER
]);
if (isError($result))
return $result;
return success(getData($result) != '0');
return success(hasData($result));
}