Use PHP constants for literals
This commit is contained in:
parent
b16ca2b026
commit
9424ecc5bc
|
@ -1113,9 +1113,15 @@ class User
|
||||||
FROM `user`
|
FROM `user`
|
||||||
INNER JOIN `profile` ON `profile`.`uid` = `user`.`uid`
|
INNER JOIN `profile` ON `profile`.`uid` = `user`.`uid`
|
||||||
INNER JOIN `contact` ON `contact`.`uid` = `user`.`uid` AND `contact`.`self`
|
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
|
WHERE `user`.`verified`
|
||||||
AND NOT `user`.`blocked` AND NOT `user`.`account_removed`
|
AND `user`.`login_date` > ?
|
||||||
AND NOT `user`.`account_expired`");
|
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)) {
|
if (!DBA::isResult($userStmt)) {
|
||||||
return $statistics;
|
return $statistics;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user