1
1
Fork 0

Merge pull request #3745 from Alkarex/sql_fbrowser_rc

SQL fix fbrowser (RC)
This commit is contained in:
Michael Vogel 2017-09-29 03:41:56 +02:00 committed by GitHub
commit 65ffd1bc2b

View file

@ -56,7 +56,8 @@ function fbrowser_content(App $a) {
$path[]=array($a->argv[2], $album);
}
$r = q("SELECT `resource-id`, `id`, `filename`, type, min(`scale`) AS `hiq`,max(`scale`) AS `loq`, `desc`
$r = q("SELECT `resource-id`, ANY_VALUE(`id`) AS `id`, ANY_VALUE(`filename`) AS `filename`, ANY_VALUE(`type`) AS `type`,
min(`scale`) AS `hiq`, max(`scale`) AS `loq`, ANY_VALUE(`desc`) AS `desc`, ANY_VALUE(`created`) AS `created`
FROM `photo` WHERE `uid` = %d $sql_extra AND `album` != '%s' AND `album` != '%s'
GROUP BY `resource-id` $sql_extra2",
intval(local_user()),