diff options
author | rvelices <rv-github@modusoptimus.com> | 2013-03-23 10:50:57 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2013-03-23 10:50:57 +0000 |
commit | 55275efb66cf6a2b0c874a1d05915fdc83d9cc48 (patch) | |
tree | 5c443dea4445b275712af02ddebaeb129f80f80c /include/section_init.inc.php | |
parent | 19d831bfe1cf60e150bada8a98c10966862d2ecf (diff) |
feature 2557 recent photos/albums should never be empty
git-svn-id: http://piwigo.org/svn/trunk@21802 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/section_init.inc.php')
-rw-r--r-- | include/section_init.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 9b6e4b088..46f1edde0 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -452,10 +452,10 @@ SELECT image_id SELECT DISTINCT(id) FROM '.IMAGES_TABLE.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id - WHERE - date_available >= '.pwg_db_get_recent_period_expression($user['recent_period']).' - '.$forbidden.' - '.$conf['order_by'].' + WHERE ' + .get_recent_photos_sql('date_available').' + '.$forbidden + .$conf['order_by'].' ;'; $page = array_merge( |