diff -r 4746dd07cc48 -r 6607cd646d6d plugins/admin/SecurityLog.php --- a/plugins/admin/SecurityLog.php Mon Feb 11 14:33:49 2008 -0500 +++ b/plugins/admin/SecurityLog.php Tue Feb 12 00:37:46 2008 -0500 @@ -102,7 +102,7 @@ $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;'; } $q = $db->sql_query($l); - while($r = $db->fetchrow()) + while($r = $db->fetchrow($q)) { $return .= seclog_format_inner($r); }