diff options
author | Friendika <info@friendika.com> | 2011-07-28 16:49:43 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-07-28 16:49:43 -0700 |
commit | 04675e3ec3cd5951d651998489a1d04247f1026b (patch) | |
tree | 7a3e618b670ed5b892c9130908788263e874a338 /mod | |
parent | c74f0f0cabc774b1dc1719b2ebc7409179d26ca4 (diff) | |
download | volse-hubzilla-04675e3ec3cd5951d651998489a1d04247f1026b.tar.gz volse-hubzilla-04675e3ec3cd5951d651998489a1d04247f1026b.tar.bz2 volse-hubzilla-04675e3ec3cd5951d651998489a1d04247f1026b.zip |
revup
Diffstat (limited to 'mod')
-rw-r--r-- | mod/photos.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php index 2941fa32a..cb13b7603 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -903,7 +903,7 @@ function photos_content(&$a) { $album = hex2bin($datum); $r = q("SELECT `resource-id`, max(`scale`) AS `scale` FROM `photo` WHERE `uid` = %d AND `album` = '%s' - AND `scale` < 4 $sql_extra GROUP BY `resource-id`", + AND `scale` <= 4 $sql_extra GROUP BY `resource-id`", intval($owner_uid), dbesc($album) ); @@ -913,7 +913,7 @@ function photos_content(&$a) { } $r = q("SELECT `resource-id`, `id`, `filename`, max(`scale`) AS `scale`, `desc` FROM `photo` WHERE `uid` = %d AND `album` = '%s' - AND `scale` < 4 $sql_extra GROUP BY `resource-id` ORDER BY `created` DESC LIMIT %d , %d", + AND `scale` <= 4 $sql_extra GROUP BY `resource-id` ORDER BY `created` DESC LIMIT %d , %d", intval($owner_uid), dbesc($album), intval($a->pager['start']), |