Projet

Général

Profil

Révision 10ffec61

ID10ffec61bf9970d40bd41067192516ae37fe7d1b
Parent e0ed2449
Enfant dd685310

Ajouté par ak4t0sh il y a environ 11 ans

remove useless naming in query

Voir les différences:

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