Changeset 27183


Ignore:
Timestamp:
Feb 4, 2014, 9:07:23 PM (6 years ago)
Author:
JanisV
Message:

Added processing for empty (white-space/underscope) physical album name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/physical2virtual/main.inc.php

    r27182 r27183  
    3333function find_or_create_virtual_category($category_name, $parent_id=null, $options=array())
    3434{
     35  // process empty album name
     36  if (preg_match('/^\s*$/', $category_name))
     37  {
     38    $category_name = '_';
     39  }
     40
    3541  if (!is_null($parent_id))
    3642  {
Note: See TracChangeset for help on using the changeset viewer.