Skip to content
Snippets Groups Projects
Commit c9ad8e81 authored by Robert Anderson's avatar Robert Anderson
Browse files

Fixed location remove

parent 77ea467e
No related branches found
No related tags found
No related merge requests found
...@@ -64,11 +64,11 @@ function removeWiSPLocation($params) { ...@@ -64,11 +64,11 @@ function removeWiSPLocation($params) {
DBBegin(); DBBegin();
# Unlink users from this location # Unlink users from this location
$res = DBDo("UPDATE wisp_userdata SET LocationID = NULL WHERE LocationID = ?",array($params[0][0])); $res = DBDo("UPDATE wisp_userdata SET LocationID = NULL WHERE LocationID = ?",array($params[0]));
# Delete location # Delete location
if ($res !== FALSE) { if ($res !== FALSE) {
$res = DBDo("DELETE FROM wisp_locations WHERE ID = ?",array($params[0][0])); $res = DBDo("DELETE FROM wisp_locations WHERE ID = ?",array($params[0]));
} }
# Commit changes if successful # Commit changes if successful
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment