correct checkIfExistingAufgenommenerstatus

This commit is contained in:
cgfhtw
2024-08-07 15:40:11 +02:00
parent 1fc7f9d3e8
commit 0621073f8d
2 changed files with 8 additions and 50 deletions
@@ -219,14 +219,14 @@ class PrestudentstatusCheckLib
*/
public function checkIfExistingAufgenommenerstatus($prestudent_id)
{
$result = $this->_ci->PrestudentstatusModel->checkIfExistingAufgenommenerstatus(
$prestudent_id
);
if(isError($result))
{
return getData($result);
}
return success(getData($result) != '0');
$result = $this->_ci->PrestudentstatusModel->loadWhere([
'prestudent_id' => $prestudent_id,
'status_kurzbz' => Prestudentstatus_model::STATUS_AUFGENOMMENER
]);
if (isError($result))
return $result;
return success(hasData($result));
}
/**