aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Tacconi <p.tacconi@giunti.it>2014-07-29 09:41:43 +0200
committerPaolo Tacconi <p.tacconi@giunti.it>2014-07-29 09:41:43 +0200
commitd6d795efc92336936142db13a3d9fc2d720f2297 (patch)
treeff970f43fb241f900e066da913acacc962d4ba71
parent87f5544f1f41aa67b03ee6b8810e235a4ee909bd (diff)
downloadvolse-hubzilla-d6d795efc92336936142db13a3d9fc2d720f2297.tar.gz
volse-hubzilla-d6d795efc92336936142db13a3d9fc2d720f2297.tar.bz2
volse-hubzilla-d6d795efc92336936142db13a3d9fc2d720f2297.zip
deleted a command with debug code
-rw-r--r--include/chat.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/chat.php b/include/chat.php
index 2a978ed7c..9d2341dfa 100644
--- a/include/chat.php
+++ b/include/chat.php
@@ -235,6 +235,7 @@ function chat_message($uid,$room_id,$xchan,$text) {
*/
function chatroom_flush($room_id,$xchan) {
+ $date_limit = date('Y-m-d H:i:s', time() - 3600 * MAX_CHATROOM_HOURS);
$d = q("delete from chat where chat_room = %d and chat_xchan = '%s' and created < '%s'",
intval($room_id),
dbesc($xchan),