plugins/admin/SecurityLog.php
changeset 413 6607cd646d6d
parent 411 d1a95497b68f
child 504 bc8e0e9ee01d
equal deleted inserted replaced
412:4746dd07cc48 413:6607cd646d6d
   100     else
   100     else
   101     {
   101     {
   102       $l = 'SELECT action,date_string,author,edit_summary,time_id,page_text FROM '.table_prefix.'logs WHERE log_type=\'security\' ORDER BY time_id DESC, action ASC;';
   102       $l = 'SELECT action,date_string,author,edit_summary,time_id,page_text FROM '.table_prefix.'logs WHERE log_type=\'security\' ORDER BY time_id DESC, action ASC;';
   103     }
   103     }
   104     $q = $db->sql_query($l);
   104     $q = $db->sql_query($l);
   105     while($r = $db->fetchrow())
   105     while($r = $db->fetchrow($q))
   106     {
   106     {
   107       $return .= seclog_format_inner($r);
   107       $return .= seclog_format_inner($r);
   108     }
   108     }
   109     $db->free_result();
   109     $db->free_result();
   110   // }
   110   // }