Changeset 25790


Ignore:
Timestamp:
Dec 4, 2013, 11:26:56 PM (10 years ago)
Author:
mistic100
Message:

don't fail if description is not provided

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/flickr2piwigo/include/ws_functions.inc.php

    r25789 r25790  
    112112    if (in_array('fill_taken', $photo['fills']))  $updates['date_creation'] = $photo['dates']['taken'];
    113113    if (in_array('fill_author', $photo['fills'])) $updates['author'] = pwg_db_real_escape_string($photo['owner']['username']);
    114     if (in_array('fill_description', $photo['fills'])) $updates['comment'] = pwg_db_real_escape_string($photo['description']);
     114    if (in_array('fill_description', $photo['fills'])) $updates['comment'] = pwg_db_real_escape_string(@$photo['description']);
    115115    if (in_array('fill_geotag', $photo['fills']) and !empty($photo['location']) )
    116116    {
Note: See TracChangeset for help on using the changeset viewer.