root/ip/trunk/includes/ajax_shoutbox_inc.php
| 161 | 166 | ||
|---|---|---|---|
265 | } | 265 | } |
266 | } | 266 | } |
267 | 267 | ||
268 | $sql = "UPDATE " . USERS_TABLE . " SET user_private_chat_alert = '" . $chat_room . "' WHERE " . $db->sql_in_set('user_id', $alert_users_array); | 268 | if (sizeof($alert_users_array) > 0) |
269 | $db->sql_query($sql); | 269 | { |
270 | $sql = "UPDATE " . USERS_TABLE . " SET user_private_chat_alert = '" . $chat_room . "' WHERE " . $db->sql_in_set('user_id', $alert_users_array); | ||
271 | $db->sql_query($sql); | ||
272 | } | ||
270 | } | 273 | } |
271 | 274 | ||
272 | // Some weird conversion of the data inputed | 275 | // Some weird conversion of the data inputed |
Download diff