Replace init_groups_visitor with Group::getIdsByContactId

This commit is contained in:
Hypolite Petovan 2017-12-16 19:21:56 -05:00
parent 09467be02a
commit e16852c2f5
8 changed files with 16 additions and 28 deletions

View file

@ -61,7 +61,7 @@ class Group extends BaseObject
* @param int $cid
* @return array
*/
private static function getIdsByContactId($cid)
public static function getIdsByContactId($cid)
{
$condition = ['contact-id' => $cid];
$stmt = dba::select('group_member', ['gid'], $condition);