Changeset 6599


Ignore:
Timestamp:
06/24/10 20:48:24 (9 years ago)
Author:
nikrou
Message:

Bug 1739 fixed : Recent pictures page returns database error
If there's no image in database, don't select thems !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set.php

    r6363 r6599  
    196196  $query = 'SELECT MAX(date_available) AS date 
    197197  FROM '.IMAGES_TABLE; 
    198   if ($row = pwg_db_fetch_assoc( pwg_query($query) ) ) 
     198  $row = pwg_db_fetch_assoc(pwg_query($query)); 
     199  if (!empty($row['date'])) 
    199200  { 
    200201    $query = 'SELECT id 
Note: See TracChangeset for help on using the changeset viewer.