X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FPermissionSet.php;h=3148d4da03360330f7127b729e7a56f98788838d;hb=08da1ed038c9b193ded0ca70b3b1c1085bb7e90a;hp=cbbde2ae0a19f25375bef07c07d0c06885aac25e;hpb=36d4516e7a9e5954123a563a87b0a8e3ce97b788;p=friendica.git diff --git a/src/Model/PermissionSet.php b/src/Model/PermissionSet.php index cbbde2ae0a..3148d4da03 100644 --- a/src/Model/PermissionSet.php +++ b/src/Model/PermissionSet.php @@ -7,8 +7,6 @@ namespace Friendica\Model; use Friendica\BaseObject; use Friendica\Database\DBA; -require_once 'include/dba.php'; - /** * @brief functions for interacting with the permission set of an object (item, photo, event, ...) */ @@ -18,7 +16,8 @@ class PermissionSet extends BaseObject * Fetch the id of a given permission set. Generate a new one when needed * * @param array $postarray The array from an item, picture or event post - * @return id + * @return int id + * @throws \Exception */ public static function fetchIDForPost(&$postarray) { @@ -71,6 +70,7 @@ class PermissionSet extends BaseObject * @param array $groups Possibly previously fetched group ids for that contact * * @return array of permission set ids. + * @throws \Exception */ static public function get($uid, $contact_id, $groups = null) @@ -102,7 +102,6 @@ class PermissionSet extends BaseObject $set[] = $permission['id']; } DBA::close($ret); - logger('Blubb: '.$uid.' - '.$contact_id.': '.implode(', ', $set)); return $set; }