X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2FBarrel%2FEvents.php;h=5278c47ec042b90ce6b5807ce3e7a8ecf21c5244;hb=859b1897309b7596f2d6f9ce6c607b87a481af5f;hp=5a20fed66ffe78f624f5a2f1fc4bc2967b265ed8;hpb=51dda5825f66ced0a744d9e49159cedbe0fd5771;p=diogenes.git diff --git a/include/Barrel/Events.php b/include/Barrel/Events.php index 5a20fed..5278c47 100644 --- a/include/Barrel/Events.php +++ b/include/Barrel/Events.php @@ -75,7 +75,7 @@ class Diogenes_Barrel_Events ."left join {$globals->table_log_sessions} as s on e.session=s.id " ."where e.data like '{$this->barrel->alias}:%' " ."order by stamp desc limit 0,10"); - while ($myarr = mysql_fetch_array($res)) { + while ($myarr = mysql_fetch_assoc($res)) { $myarr['author'] = call_user_func(array($globals->session,'getUsername'),$myarr['auth'],$myarr['uid']); $myarr['flags'] = EVENT_FLAG_NONE; list($op_alias, $op_file) = split(":",$myarr['data']);