From 5af89bca3bd17777fae94e681882d6eabf152303 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 12 Jun 2021 18:24:01 +0200 Subject: Fix misc Psalm issues. --- includes/concertlogs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/concertlogs.php') diff --git a/includes/concertlogs.php b/includes/concertlogs.php index 8b485ca..cd0a330 100644 --- a/includes/concertlogs.php +++ b/includes/concertlogs.php @@ -82,7 +82,7 @@ if ( !class_exists( 'GiglogAdmin_Concertlogs' ) ) public function get_assigned_role(string $username) : ?string { - return array_search( $username, $this->roles ); + return array_search( $username, $this->roles ) || NULL; } public function assigned_user(string $role) : ?string -- cgit v1.2.3