Skip to content

Commit 9ab6df0

Browse files
committed
Issue#68 Get name from guid if not set
1 parent 2cf7265 commit 9ab6df0

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

lib/Backend/GroupBackend.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,6 @@ public function getGroupDetails(string $gid): array
403403
"Entering getGroupDetails($gid)", ["app" => $this->appName]
404404
);
405405

406-
if (empty($this->properties[DB::GROUP_NAME_COLUMN])) {
407-
return [];
408-
}
409-
410406
$group = $this->getGroup($gid);
411407

412408
if (!($group instanceof Group)) {

lib/Query/QueryProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private function loadQueries()
8888

8989
$groupColumns
9090
= "$gGID AS gid, " .
91-
(empty($gName) ? "null" : $gName) . " AS name, " .
91+
(empty($gName) ? $gGID : $gName) . " AS name, " .
9292
(empty($gAdmin) ? "false" : $gAdmin) . " AS admin";
9393
$userColumns
9494
= "$uUID AS uid, " .

0 commit comments

Comments
 (0)