2012-12-19 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/functions_users.php: Fixed warning when chat log file
	doesn't exists.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7312 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2012-12-19 17:33:40 +00:00
parent e17e97e033
commit 06c9b7c6ce
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2012-12-19 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_users.php: Fixed warning when chat log file
doesn't exists.
2012-12-19 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* extensions/module_groups.php: Fixed view, colors in cells were

View File

@ -713,9 +713,13 @@ function users_get_last_type_message() {
$text_encode = @file_get_contents($log_chat_file);
$log = json_decode($text_encode, true);
// Prevent from error when chat file log doesn't exists
if (empty($log))
$return = false;
else {
$last = end($log);
$return = $last['type'];
}
fclose($fp_global_counter);
}