Rework Profile::sidebar profile link conditions

- Now show Follow, Unfollow, Atom Feed and Message in profile sidebar more consistently with the status of the current visitor
- Remove pseudo-field contact.remoteconnect
This commit is contained in:
Hypolite Petovan 2019-06-10 21:33:25 -04:00
parent 61c79ce9ee
commit 3aebb92cf3
9 changed files with 150 additions and 175 deletions

View file

@ -124,6 +124,20 @@ class Contact extends BaseObject
return DBA::toArray($statement);
}
/**
* @param array $fields Array of selected fields, empty for all
* @param array $condition Array of fields for condition
* @param array $params Array of several parameters
* @return array
* @throws \Exception
*/
public static function selectFirst(array $fields = [], array $condition = [], array $params = [])
{
$contact = DBA::selectFirst('contact', $fields, $condition, $params);
return $contact;
}
/**
* @param integer $id Contact ID
* @param array $fields Array of selected fields, empty for all