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

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