Brain fart. Should really wait until the first cuppa kicks in.

This commit is contained in:
friendica 2014-07-14 15:55:23 -07:00
parent a6c03a8c2e
commit f710ebc7f9

View File

@ -175,7 +175,7 @@ function mail_content(&$a) {
$r = q("select abook.*, xchan.* from abook left join xchan on abook_xchan = xchan_hash
where abook_channel = %d and abook_xchan = '%s' limit 1",
intval(local_user()),
intval(argv(2))
dbesc($_REQUEST['hash'])
);
if($r) {
$prename = $r[0]['xchan_name'];