Commit 8bfe1dab authored by Nico Schallehn's avatar Nico Schallehn

Kleiner Bugfix an Cronjob

parent 90bfc235
...@@ -113,6 +113,7 @@ function offtimeout() ...@@ -113,6 +113,7 @@ function offtimeout()
{ {
$result = mysql_query("SELECT id, name FROM user WHERE refresh_time < '".(time()-60)."' AND online = '1'"); $result = mysql_query("SELECT id, name FROM user WHERE refresh_time < '".(time()-60)."' AND online = '1'");
$counter = 0; $counter = 0;
$text = "";
while($user = mysql_fetch_array($result)) while($user = mysql_fetch_array($result))
{ {
mysql_query("INSERT INTO chat (nachricht, user_id, hideuser, userchange, chat_time) VALUES ('<b>{$user['name']}</b> verl&auml;sst den Chat durch <b>TimeOut</b>', '{$user['id']}', '1', '1', '".time()."')"); mysql_query("INSERT INTO chat (nachricht, user_id, hideuser, userchange, chat_time) VALUES ('<b>{$user['name']}</b> verl&auml;sst den Chat durch <b>TimeOut</b>', '{$user['id']}', '1', '1', '".time()."')");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment