fix more pairs
This commit is contained in:
parent
38df37a9aa
commit
bcf07946fb
@ -605,12 +605,11 @@ class UserPage extends Extension
|
|||||||
$rows = $database->get_pairs("
|
$rows = $database->get_pairs("
|
||||||
SELECT
|
SELECT
|
||||||
owner_ip,
|
owner_ip,
|
||||||
COUNT(images.id) AS count,
|
COUNT(images.id) AS count
|
||||||
MAX(posted) AS most_recent
|
|
||||||
FROM images
|
FROM images
|
||||||
WHERE owner_id=:id
|
WHERE owner_id=:id
|
||||||
GROUP BY owner_ip
|
GROUP BY owner_ip
|
||||||
ORDER BY most_recent DESC", ["id"=>$duser->id]);
|
ORDER BY max(posted) DESC", ["id"=>$duser->id]);
|
||||||
return $rows;
|
return $rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -620,12 +619,11 @@ class UserPage extends Extension
|
|||||||
$rows = $database->get_pairs("
|
$rows = $database->get_pairs("
|
||||||
SELECT
|
SELECT
|
||||||
owner_ip,
|
owner_ip,
|
||||||
COUNT(comments.id) AS count,
|
COUNT(comments.id) AS count
|
||||||
MAX(posted) AS most_recent
|
|
||||||
FROM comments
|
FROM comments
|
||||||
WHERE owner_id=:id
|
WHERE owner_id=:id
|
||||||
GROUP BY owner_ip
|
GROUP BY owner_ip
|
||||||
ORDER BY most_recent DESC", ["id"=>$duser->id]);
|
ORDER BY max(posted) DESC", ["id"=>$duser->id]);
|
||||||
return $rows;
|
return $rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user