Changeset:
e8a744a23a95
https://sourceforge.net/p/mrbs/hg-code/ci/e8a744a23a95952c7b5b05cd77d2edb7d2ce1ecc
Author:
Campbell Morrison <[email protected]>
Date:
Tue Sep 27 16:11:22 2016 +0100
Log message:
Fixed problem with last but one merge
diffstat:
web/del.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 9222dadeccdc -r e8a744a23a95 web/del.php
--- a/web/del.php Tue Sep 27 16:07:53 2016 +0100
+++ b/web/del.php Tue Sep 27 16:11:22 2016 +0100
@@ -24,14 +24,14 @@
// They have confirmed it already, so go blast!
sql_begin();
// First take out all appointments for this room
- $result = sql_command("delete from $tbl_entry where room_id=$room");
+ $result = sql_command("DELETE FROM $tbl_entry WHERE room_id=?",
array($room));
if ($result >= 0)
{
- $result = sql_command("delete from $tbl_repeat where room_id=$room");
+ $result = sql_command("DELETE FROM $tbl_repeat WHERE room_id=?",
array($room));
// Now take out the room itself
if ($result >= 0)
{
- $result = sql_command("delete from $tbl_room where id=$room");
+ sql_command("DELETE FROM $tbl_room WHERE id=?",array($room));
}
}
------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits