Skip to content

Commit

Permalink
group by
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Jan 11, 2024
1 parent cbe8ac4 commit fd46630
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,7 @@ public static function checkValidSessionId()
$user_table . '.is_deleted' => 0,
$pu_table . '.profiles_id' => $profile_id,
] + getEntitiesRestrictCriteria($pu_table, 'entities_id', $entity_id, true),
'GROUPBY' => [$profile_table . '.id'],
]
);

Expand Down Expand Up @@ -2194,7 +2195,7 @@ public static function canWriteSessionFiles(): bool
*
* @return void
*/
public static function reloadCurrentProfile()
public static function reloadCurrentProfile(): void
{
$current_profile_id = $_SESSION['glpiactiveprofile']['id'];

Expand Down

0 comments on commit fd46630

Please sign in to comment.