diff options
Diffstat (limited to 'app/Core/Ldap/Group.php')
-rw-r--r-- | app/Core/Ldap/Group.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Core/Ldap/Group.php b/app/Core/Ldap/Group.php index e11e8ecd..634d47ee 100644 --- a/app/Core/Ldap/Group.php +++ b/app/Core/Ldap/Group.php @@ -16,10 +16,10 @@ class Group /** * Query * - * @access private + * @access protected * @var Query */ - private $query; + protected $query; /** * Constructor @@ -43,7 +43,8 @@ class Group */ public static function getGroups(Client $client, $query) { - $self = new self(new Query($client)); + $className = get_called_class(); + $self = new $className(new Query($client)); return $self->find($query); } |