Issue#68 Get name from guid if not set
This commit is contained in:
@@ -403,10 +403,6 @@ final class GroupBackend extends ABackend implements
|
|||||||
"Entering getGroupDetails($gid)", ["app" => $this->appName]
|
"Entering getGroupDetails($gid)", ["app" => $this->appName]
|
||||||
);
|
);
|
||||||
|
|
||||||
if (empty($this->properties[DB::GROUP_NAME_COLUMN])) {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
$group = $this->getGroup($gid);
|
$group = $this->getGroup($gid);
|
||||||
|
|
||||||
if (!($group instanceof Group)) {
|
if (!($group instanceof Group)) {
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class QueryProvider implements \ArrayAccess
|
|||||||
|
|
||||||
$groupColumns
|
$groupColumns
|
||||||
= "$gGID AS gid, " .
|
= "$gGID AS gid, " .
|
||||||
(empty($gName) ? "null" : $gName) . " AS name, " .
|
(empty($gName) ? $gGID : $gName) . " AS name, " .
|
||||||
(empty($gAdmin) ? "false" : $gAdmin) . " AS admin";
|
(empty($gAdmin) ? "false" : $gAdmin) . " AS admin";
|
||||||
$userColumns
|
$userColumns
|
||||||
= "$uUID AS uid, " .
|
= "$uUID AS uid, " .
|
||||||
|
|||||||
Reference in New Issue
Block a user