Avoiding php warning message

skala
Julio Montoya 14 years ago
parent 9f8ed5f01c
commit 179c3f7f7d
  1. 7
      main/chat/chat_hidden.php

@ -67,7 +67,12 @@ if (!empty($group_id)) {
}
$chat_size_old = intval($_POST['chat_size_old']);
$chat_size_new = filesize($chat_path.$basename_chat.'.log.html');
$file = $chat_path.$basename_chat.'.log.html';
$chat_size_new = 0;
if (file_exists($file)) {
$chat_size_new = filesize($file);
}
$sql = "SELECT user_id FROM $tbl_chat_connected WHERE user_id='".$_user['user_id']."' $extra_condition";
$result = Database::query($sql);

Loading…
Cancel
Save