fix
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
* Ideenmelder
|
||||
* Autor: Walter Hupfeld, Hamm
|
||||
* E-Mail: info@hupfeld-software.de
|
||||
* Version: 1.0
|
||||
* Version: 3.0
|
||||
* Datum: 18.05.2021
|
||||
* zuletzte bearbeitet: 21.02.2024
|
||||
* zuletzte bearbeitet: 15.03.2024
|
||||
******************************** */
|
||||
|
||||
session_start();
|
||||
@@ -33,12 +33,13 @@
|
||||
}
|
||||
$numDelete = (int)$_GET['delid'];
|
||||
|
||||
if ($superAmdin) {
|
||||
$stmt = $db->prepare("DELETE FROM location WHERE id = :id AND district=:district");}
|
||||
if ($boolSuperAdmin) {
|
||||
$stmt = $db->prepare("DELETE FROM location WHERE id = :id");}
|
||||
else {
|
||||
$stmt = $db->prepare("DELETE FROM location WHERE id = :id AND district=:district");}
|
||||
$stmt = $db->prepare("DELETE FROM location WHERE id = :id AND district=:district");
|
||||
$stmt->bindValue(":district",$strDistrict);
|
||||
}
|
||||
$stmt->bindValue(":id",$numDelete);
|
||||
$stmt->bindValue(":district",$strDistrict);
|
||||
$stmt->execute();
|
||||
|
||||
$stmt = $db->prepare("DELETE FROM comment WHERE loc_id= :loc_id");
|
||||
|
||||
Reference in New Issue
Block a user