r39192 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39191‎ | r39192 | r39193 >
Date:23:51, 11 August 2008
Author:aaron
Status:old
Tags:
Comment:
cleanup from last commit
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -869,7 +869,7 @@
870870 array( 'comma-separator', 'checkuser-log-userips', 'checkuser-log-ipedits', 'checkuser-log-ipusers',
871871 'checkuser-log-ipedits-xff', 'checkuser-log-ipusers-xff' ) );*/
872872
873 - $this->searchConds = $searchConds;
 873+ $this->searchConds = $searchConds ? $searchConds : array();
874874 $this->specialPage = $specialPage;
875875 }
876876
@@ -926,10 +926,11 @@
927927
928928 function getQueryInfo() {
929929 global $wgRequest;
 930+ $this->searchConds[] = 'user_id = cul_user';
930931 return array(
931932 'tables' => array('cu_log','user'),
932933 'fields' => $this->selectFields(),
933 - 'conds' => $this->searchConds + array('user_id = cul_user')
 934+ 'conds' => $this->searchConds
934935 );
935936 }
936937
@@ -946,4 +947,3 @@
947948 'cul_target_id','cul_target_text','user_name');
948949 }
949950 }
950 -

Status & tagging log