Changeset 29382


Ignore:
Timestamp:
09/02/14 15:06:50 (5 years ago)
Author:
plg
Message:

avoit empty album name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/menalto2piwigo/admin.php

    r29070 r29382  
    184184      $row = pwg_db_fetch_row(pwg_query($query)); 
    185185     
    186       // print "$row[4] - $parentId -> $row[0] : $row[1] $row[2] $row[3]\n"; 
     186      // print "$row[4] - $parentId -> $row[0] : $row[1] $row[2] $row[3]<br>"; 
    187187      $title = m2p_remove_bbcode($row[1]); 
     188      if (empty($title)) 
     189      { 
     190        $title = $basename; 
     191      } 
     192       
    188193      $summary = m2p_remove_bbcode($row[2]); 
    189194      $description = m2p_remove_bbcode($row[3]); 
     
    334339    // echo '<pre>'; print_r($album_thumbs); echo '</pre>'; 
    335340    // echo '<pre>'; print_r($comment_inserts); echo '</pre>'; 
    336    
     341 
    337342    mass_updates( 
    338343      IMAGES_TABLE, 
     
    367372      $comment_inserts 
    368373      ); 
    369    
     374 
    370375    array_push($page['infos'], l10n('Information data registered in database')); 
    371376  } 
Note: See TracChangeset for help on using the changeset viewer.