Révision 10ffec61
remove useless naming in query
| plugins/moodle/moodle_users_online.php | ||
|---|---|---|
| 58 | 58 |
|
| 59 | 59 |
//Online users |
| 60 | 60 |
$nbusers = 0; |
| 61 |
if (($stmt = $dbh->query("SELECT count(id) AS users FROM {$table_prefix}user WHERE lastaccess > $graph_period")) != false) {
|
|
| 61 |
if (($stmt = $dbh->query("SELECT count(id) FROM {$table_prefix}user WHERE lastaccess > $graph_period")) != false) {
|
|
| 62 | 62 |
$nbusers = $stmt->fetchColumn(); |
| 63 | 63 |
} |
| 64 | 64 |
echo "users_online.value $nbusers\n"; |
Formats disponibles : Unified diff