summaryrefslogtreecommitdiff
path: root/includes/pages/user_wakeup.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-12-21 23:18:57 +0100
committerPhilip Häusler <msquare@notrademark.de>2011-12-21 23:18:57 +0100
commitce7f071c38202764f43eded4c3157a4743bd545f (patch)
treec4fc520d931df92c58b94a4bf4dd31cd92ff4591 /includes/pages/user_wakeup.php
parentdef9532d6ba5203f4bfeefa2db21b8d4fe006f32 (diff)
#44 angeltypes recreated
Diffstat (limited to 'includes/pages/user_wakeup.php')
-rw-r--r--includes/pages/user_wakeup.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/pages/user_wakeup.php b/includes/pages/user_wakeup.php
index 2c6940e7..fbb47a0d 100644
--- a/includes/pages/user_wakeup.php
+++ b/includes/pages/user_wakeup.php
@@ -17,23 +17,23 @@ function user_wakeup() {
. sql_escape($date) . "', '" . sql_escape($ort) . "', " . "'"
. sql_escape($bemerkung) . "')";
sql_query($SQL);
- $html .= success(Get_Text(4));
+ $html .= success(Get_Text(4), true);
} else
- $html .= error("Broken date!");
+ $html .= error("Broken date!", true);
break;
case 'delete' :
if (isset ($_REQUEST['id']) && preg_match("/^[0-9]{1,11}$/", $_REQUEST['id']))
$id = $_REQUEST['id'];
else
- return error("Incomplete call, missing wake-up ID.");
+ return error("Incomplete call, missing wake-up ID.", true);
$wakeup = sql_select("SELECT * FROM `Wecken` WHERE `ID`=" . sql_escape($id) . " LIMIT 1");
if (count($wakeup) > 0 && $wakeup[0]['UID'] == $user['UID']) {
sql_query("DELETE FROM `Wecken` WHERE `ID`=" . sql_escape($id) . " LIMIT 1");
- $html .= success("Wake-up call deleted.");
+ $html .= success("Wake-up call deleted.", true);
} else
- return error("No wake-up found.");
+ return error("No wake-up found.", true);
break;
}
}