Use PHP constants for literals

2022.09-rc
Steffen K9 2020-02-03 23:30:31 +01:00 zatwierdzone przez GitHub
rodzic b16ca2b026
commit 9424ecc5bc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 9 dodań i 3 usunięć

Wyświetl plik

@ -1113,9 +1113,15 @@ class User
FROM `user`
INNER JOIN `profile` ON `profile`.`uid` = `user`.`uid`
INNER JOIN `contact` ON `contact`.`uid` = `user`.`uid` AND `contact`.`self`
WHERE `user`.`verified` AND `user`.`login_date` > '0001-01-01' AND NOT `user`.`account-type` = 3
AND NOT `user`.`blocked` AND NOT `user`.`account_removed`
AND NOT `user`.`account_expired`");
WHERE `user`.`verified`
AND `user`.`login_date` > ?
AND `user`.`account-type` != ?
AND NOT `user`.`blocked`
AND NOT `user`.`account_removed`
AND NOT `user`.`account_expired`",
DBA::NULL_DATETIME,
self::ACCOUNT_TYPE_COMMUNITY
);
if (!DBA::isResult($userStmt)) {
return $statistics;