Make joinAdd() explicit in OStatusPlugin::onStartProfileCompletionSearch()

This commit is contained in:
Evan Prodromou 2011-08-27 12:06:34 -04:00
parent bce337e7c3
commit 01fd24ce6a
1 changed files with 1 additions and 2 deletions

View File

@ -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();