소스 검색

Update the condition for boolean

FusionPBX 11 달 전
부모
커밋
aa948f23e3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/user_logs/resources/classes/user_logs.php

+ 1 - 1
core/user_logs/resources/classes/user_logs.php

@@ -76,7 +76,7 @@ if (!class_exists('user_logs')) {
 				$array['user_logs'][0]["user_agent"] = $_SERVER['HTTP_USER_AGENT'];
 				$array['user_logs'][0]["session_id"] = session_id();
 				$array['user_logs'][0]["type"] = 'login';
-				if ($result["authorized"] == "true") {
+				if ($result["authorized"]) {
 					$array['user_logs'][0]["result"] = 'success';
 				}
 				else {