Browse Source

Fix wrong SQL query syntax in Core\ACL

pull/4561/head
Hypolite Petovan 4 years ago
parent
commit
49bd2903c7
  1. 2
      src/Core/ACL.php
  2. 2
      src/Core/Protocol.php

2
src/Core/ACL.php

@ -180,7 +180,7 @@ class ACL extends BaseObject
$o .= "<select name=\"$selname\" id=\"$selclass\" class=\"$selclass\" size=\"$size\"$tabindex_attr$hidepreselected>\r\n";
$stmt = dba::p("SELECT `id`, `name`, `url`, `network` FROM `contact`
WHERE `uid` = %d AND NOT `self` AND NOT `blocked` AND NOT `pending` AND NOT `archive` AND `notify` != ''
WHERE `uid` = ? AND NOT `self` AND NOT `blocked` AND NOT `pending` AND NOT `archive` AND `notify` != ''
$sql_extra
ORDER BY `name` ASC ", intval(local_user())
);

2
src/Core/Protocol.php

@ -119,6 +119,6 @@ class Protocol
*/
public static function formatMention($profile_url, $display_name)
{
return $display_name . '(' . self::getAddrFromProfileUrl($profile_url) . ')';
return $display_name . ' (' . self::getAddrFromProfileUrl($profile_url) . ')';
}
}

Loading…
Cancel
Save