Merge pull request #3335 from annando/issue-3331

Issue 3331: Remove unneeded table "deliverq"
This commit is contained in:
Tobias Diekershoff 2017-04-14 07:32:30 +02:00 committed by GitHub
commit b8fd48dddc
7 changed files with 10 additions and 32 deletions

View file

@ -59,9 +59,8 @@ function photo_albums($uid, $update = false) {
} else {
// This query doesn't do the count and is much faster
$albums = qu("SELECT DISTINCT(`album`), '' AS `total`
FROM `photo`
WHERE `uid` = %d AND `album` != '%s' AND `album` != '%s' $sql_extra
GROUP BY `album` ORDER BY `created` DESC",
FROM `photo` USE INDEX (`uid_album_scale_created`)
WHERE `uid` = %d AND `album` != '%s' AND `album` != '%s' $sql_extra",
intval($uid),
dbesc('Contact Photos'),
dbesc(t('Contact Photos'))