Browse Source

Modify the SQL sentence for get the list of sessions - refs #7275

Angel Fernando Quiroz Campos 10 years ago
parent
commit
087a74d023
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/auth.lib.php

+ 1 - 1
main/inc/lib/auth.lib.php

@@ -546,7 +546,7 @@ class Auth
             $date = Database::escape_string($date);
             
             $sql .= "WHERE ('$date' BETWEEN s.date_start AND s.date_end) "
-                    . "OR (s.date_start = '0000-00-00' OR s.date_end = '0000-00-00')";
+                    . "OR s.date_end = '0000-00-00'";
         }
 
         $sessionResult = Database::query($sql);