X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FContact.php;h=45fd368d856812fe04fdd112245cb04e03c9a93f;hb=aaedac8f574278fba89cd11d3d8f1adaeb6b030e;hp=7524c0cea063946ed0c1b9ba04ee76a27954f8c0;hpb=71fc694c6715601f8d9cabcb1835c66a23aea4ca;p=friendica.git diff --git a/include/Contact.php b/include/Contact.php index 7524c0cea0..45fd368d85 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -46,6 +46,10 @@ function contact_remove($id) { q("DELETE FROM `event` WHERE `cid` = %d ", intval($id) ); + q("DELETE FROM `queue` WHERE `cid` = %d ", + intval($id) + ); + } @@ -133,7 +137,12 @@ function contact_photo_menu($contact) { $o = ""; foreach($menu as $k=>$v){ - if ($v!="") $o .= "
  • $k
  • \n"; + if ($v!="") { + if(($k !== t("View recent")) && ($k !== t("Send PM"))) + $o .= "
  • $k
  • \n"; + else + $o .= "
  • $k
  • \n"; + } } return $o; }}