Fehlerkorrektur

This commit is contained in:
aschwarz
2025-12-08 07:46:44 +01:00
parent 41310e94db
commit 1cd2f68ee7

View File

@@ -113,7 +113,7 @@ $result_edit = $db->query("SELECT DISTINCT 1
WHERE uid = '$uid1'
AND aesp_admin_rolle = 'a_neuanlag'");
$row_edit = $result_edit->fetch_array();
if ($row_edit[0] == '1') {
if ($row_edit && isset($row_edit['1']) && $row_edit['1'] == '1') {
echo "<div align='center'><a href=\"neuanlage.php?action=studbearb&stud_uid=$uid_user\"><img src=\"images/edit.png\" border=\"0\"></a></div>";
}