From 01fd24ce6afdb3cef05fb1a38c57ad52e7abfb87 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 27 Aug 2011 12:06:34 -0400 Subject: [PATCH] Make joinAdd() explicit in OStatusPlugin::onStartProfileCompletionSearch() --- plugins/OStatus/OStatusPlugin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 1c99db8700..360aaa0c0a 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -350,8 +350,7 @@ class OStatusPlugin extends Plugin */ function onStartProfileCompletionSearch($action, $profile, $search_engine) { if ($action->field == 'uri') { - $user = new User(); - $profile->joinAdd($user); + $profile->joinAdd(array('id', 'user:id')); $profile->whereAdd('uri LIKE "%' . $profile->escape($q) . '%"'); $profile->query(); -- 2.39.5