mirror of
https://github.com/friendica/friendica
synced 2024-11-13 14:22:54 +00:00
Remove join profile table
Remove join profile table and remove exclude forums
This commit is contained in:
parent
9424ecc5bc
commit
52789f3ae4
1 changed files with 1 additions and 4 deletions
|
@ -1111,16 +1111,13 @@ class User
|
||||||
|
|
||||||
$userStmt = DBA::p("SELECT `user`.`uid`, `user`.`login_date`, `contact`.`last-item`
|
$userStmt = DBA::p("SELECT `user`.`uid`, `user`.`login_date`, `contact`.`last-item`
|
||||||
FROM `user`
|
FROM `user`
|
||||||
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`
|
WHERE `user`.`verified`
|
||||||
AND `user`.`login_date` > ?
|
AND `user`.`login_date` > ?
|
||||||
AND `user`.`account-type` != ?
|
|
||||||
AND NOT `user`.`blocked`
|
AND NOT `user`.`blocked`
|
||||||
AND NOT `user`.`account_removed`
|
AND NOT `user`.`account_removed`
|
||||||
AND NOT `user`.`account_expired`",
|
AND NOT `user`.`account_expired`",
|
||||||
DBA::NULL_DATETIME,
|
DBA::NULL_DATETIME
|
||||||
self::ACCOUNT_TYPE_COMMUNITY
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!DBA::isResult($userStmt)) {
|
if (!DBA::isResult($userStmt)) {
|
||||||
|
|
Loading…
Reference in a new issue