Merge pull request #3745 from Alkarex/sql_fbrowser_rc
SQL fix fbrowser (RC)
This commit is contained in:
commit
65ffd1bc2b
1 changed files with 2 additions and 1 deletions
|
@ -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()),
|
||||
|
|
Loading…
Reference in a new issue