Commit 1a7f9218 authored by Mario's avatar Mario

gallery: fix postgres fix

parent 41a6e316
......@@ -82,10 +82,10 @@ class Gallery extends \Zotlabs\Web\Controller {
$unsafe = ((array_key_exists('unsafe', $_GET) && $_GET['unsafe']) ? 1 : 0);
$albums = q("SELECT DISTINCT album, created FROM photo
$albums = q("SELECT DISTINCT album FROM photo
WHERE uid = %d AND photo_usage = %d
AND is_nsfw = %d $sql_extra
ORDER BY created DESC",
ORDER BY album DESC",
intval($owner_uid),
intval(PHOTO_NORMAL),
intval($unsafe)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment