Fixing PHP warning message

skala
Julio Montoya 13 years ago
parent 761f2f1852
commit 5eaa7be980
  1. 5
      main/inc/lib/online.inc.php

@ -161,9 +161,8 @@ function who_is_online($valid, $friends = false) {
//This query will show all registered users. Only for dev purposes.
//$query = "SELECT DISTINCT u.user_id as login_user_id, login_date FROM ".$track_online_table ." e , $table_user u GROUP by u.user_id ORDER BY picture_uri DESC";
$result = @Database::query($query);
//@todo why we dont believe in db query results?
if (count($result)>0) {
$result = Database::query($query);
if ($result) {
$rtime = time();
$rdate = date("Y-m-d H:i:s",$rtime);
$validtime = mktime(date("H"),date("i")-$valid,date("s"),date("m"),date("d"),date("Y"));

Loading…
Cancel
Save