Skip to content
Permalink
Browse files

better log picture order; updates #1034

  • Loading branch information...
following5 committed Aug 26, 2017
1 parent 7887929 commit 776e57f054c3929b41d0e5ed92820824c019dcee
Showing with 4 additions and 4 deletions.
  1. +4 −4 htdocs/lib2/logic/logpics.class.php
@@ -143,7 +143,7 @@ public static function get($purpose, $userId = 0, $cacheId = 0)
$joinCaches
$joinCacheStatus
WHERE `object_type`=1 AND `logs`.`user_id`='&1' AND NOT `spoiler`
ORDER BY `logs`.`order_date` DESC",
ORDER BY `logs`.`order_date` DESC, `pics`.`seq` DESC",
$userId
);
break;
@@ -157,7 +157,7 @@ public static function get($purpose, $userId = 0, $cacheId = 0)
FROM `pictures` AS `pics`
$joinLogs
WHERE `object_type`=1 AND `logs`.`user_id`='&1'
ORDER BY `logs`.`order_date` DESC",
ORDER BY `logs`.`order_date` DESC, `pics`.`seq` DESC",
$login->userid
);
break;
@@ -176,7 +176,7 @@ public static function get($purpose, $userId = 0, $cacheId = 0)
$joinCaches
$joinUser
WHERE `object_type`=1 AND `caches`.`user_id`='&1'
ORDER BY `logs`.`order_date` DESC",
ORDER BY `logs`.`order_date` DESC, `pics`.`seq` DESC",
$login->userid
);
break;
@@ -215,7 +215,7 @@ public static function get($purpose, $userId = 0, $cacheId = 0)
WHERE
`object_type`=1 AND `logs`.`cache_id`='&1'
AND NOT (`data_license` IN ('&2', '&3'))
ORDER BY `logs`.`order_date` DESC",
ORDER BY `logs`.`order_date` DESC, `pics`.`seq` DESC",
$cacheId,
NEW_DATA_LICENSE_ACTIVELY_DECLINED,
NEW_DATA_LICENSE_PASSIVELY_DECLINED

0 comments on commit 776e57f

Please sign in to comment.
You can’t perform that action at this time.