Permalink
Browse files

Bug 1739 fixed : Recent pictures page returns database error

If there's no image in database, don't select thems !

git-svn-id: http://piwigo.org/svn/trunk@6599 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information...
nikrou
nikrou committed Jun 24, 2010
1 parent 3aaa5b2 commit 4b4293ffffb62d8df2191c4626240c3d735fae44
Showing with 2 additions and 1 deletion.
  1. +2 −1 admin/element_set.php
@@ -195,7 +195,8 @@
$page['title'] = l10n('Recent pictures');
$query = 'SELECT MAX(date_available) AS date
FROM '.IMAGES_TABLE;
if ($row = pwg_db_fetch_assoc( pwg_query($query) ) )
$row = pwg_db_fetch_assoc(pwg_query($query));
if (!empty($row['date']))
{
$query = 'SELECT id
FROM '.IMAGES_TABLE.'

0 comments on commit 4b4293f

Please sign in to comment.