Skip to content

Commit

Permalink
added sort by date
Browse files Browse the repository at this point in the history
  • Loading branch information
kill0rz committed Jan 15, 2018
1 parent d712eb6 commit 19231db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot_modules/prio2/postpicture.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function call_postpicture_help() {
get_thread($thread->threadname);

// Jetzt nach Nutzernamen gruppieren
$sql3 = "SELECT q.postedby,u.username,u.wbb_userid FROM tb_pictures_queue q JOIN tb_lastseen_users u ON q.postedby=u.userid GROUP BY postedby;";
$sql3 = "SELECT q.postedby,u.username,u.wbb_userid FROM tb_pictures_queue q JOIN tb_lastseen_users u ON q.postedby=u.userid GROUP BY postedby ORDER BY postedat ASC; --";
$result3 = $mysqli->query($sql3);
while ($queue = $result3->fetch_object()) {
unset($links);
Expand All @@ -54,7 +54,7 @@ function call_postpicture_help() {
}

// für jedes Bild
$sql2 = "SELECT * FROM tb_pictures_queue WHERE TRIM(threadname)='" . $thread->threadname . "' AND postedby='" . $queue->postedby . "'";
$sql2 = "SELECT * FROM tb_pictures_queue WHERE TRIM(threadname)='" . $thread->threadname . "' AND postedby='" . $queue->postedby . "' ORDER BY postedat ASC";
$result2 = $mysqli->query($sql2);
while ($queue_pic = $result2->fetch_object()) {
if (!$userid_set && $trigger_poster_name) {
Expand Down

0 comments on commit 19231db

Please sign in to comment.