Jack Phoenix has uploaded a new change for review.
https://gerrit.wikimedia.org/r/278848
Change subject: Don't be stupid
......................................................................
Don't be stupid
Change-Id: I7ea74762df0a279f88224041d2e7dc01fea0cc86
---
M UserRelationship/UserRelationshipClass.php
1 file changed, 5 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SocialProfile
refs/changes/48/278848/1
diff --git a/UserRelationship/UserRelationshipClass.php
b/UserRelationship/UserRelationshipClass.php
index e47c44f..546a06d 100644
--- a/UserRelationship/UserRelationshipClass.php
+++ b/UserRelationship/UserRelationshipClass.php
@@ -471,7 +471,7 @@
'ur_id', 'ur_user_id_from',
'ur_user_name_from', 'ur_type',
'ur_message', 'ur_date'
),
- array( "ur_id = {$id}" ),
+ array( 'ur_id' => $id ),
__METHOD__
);
@@ -519,8 +519,8 @@
'ur_message', 'ur_date'
),
array(
- "ur_user_id_to = {$this->user_id}",
- "ur_status = {$status}"
+ 'ur_user_id_to' => $this->user_id,
+ 'ur_status' => $status
),
__METHOD__,
$options
@@ -713,7 +713,7 @@
'r_id', 'r_user_id_relation',
'r_user_name_relation', 'r_date'
),
- array( "r_user_id = {$this->user_id}", "r_type =
{$type}" ),
+ array( 'r_user_id' => $this->user_id, 'r_type' => $type
),
__METHOD__,
array( 'ORDER BY' => 'r_user_name_relation' )
);
@@ -739,7 +739,7 @@
$res = $dbr->select(
'user_relationship_stats',
array( 'rs_friend_count', 'rs_foe_count' ),
- array( "rs_user_id = {$userId}" ),
+ array( 'rs_user_id' => $userId ),
__METHOD__,
array( 'LIMIT' => 1, 'OFFSET' => 0 )
);
--
To view, visit https://gerrit.wikimedia.org/r/278848
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7ea74762df0a279f88224041d2e7dc01fea0cc86
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SocialProfile
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits