Limmat/admin/students-reactivate-archived-with-active-classes.php

17 lines
427 B
PHP
Raw Permalink Normal View History

2025-01-07 03:45:35 +01:00
<?php
require '../config/function.php';
$archivedStudents = getArchivedStudentsWithActiveClasses();
$studentReactivateRes = reactivateArchivedStudentsWithActiveClasses($archivedStudents);
if($studentReactivateRes)
{
redirect('archive.php','Schüler:innen wurden erfolgreich freigegeben','success');
}
else
{
redirect('archive.php','Ein Fehler ist aufgetreten','danger');
}
?>