aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/element_set.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/element_set.php b/admin/element_set.php
index c19272084..58113861d 100644
--- a/admin/element_set.php
+++ b/admin/element_set.php
@@ -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.'