mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-18 07:16:11 +02:00
Bug 1739 fixed : Recent pictures page returns database error
merge from trunk git-svn-id: http://piwigo.org/svn/branches/2.1@6600 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -195,7 +195,8 @@ elseif ('recent'== $_GET['cat'])
|
||||
$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.'
|
||||
|
||||
Reference in New Issue
Block a user