Development

Changeset 29525

You must first sign up to be able to contribute.

Changeset 29525

Show
Ignore:
Timestamp:
05/19/10 15:01:43 (3 years ago)
Author:
fabien
Message:

[1.3, 1.4] fixed a warning (closes #8547)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.3/lib/util/sfToolkit.class.php

    r23810 r29525  
    101101  public static function clearGlob($pattern) 
    102102  { 
    103     $files = glob($pattern); 
     103    if (false === $files = glob($pattern)) 
     104    { 
     105      return; 
     106    } 
    104107 
    105108    // order is important when removing directories 
  • branches/1.4/lib/util/sfToolkit.class.php

    r23945 r29525  
    101101  public static function clearGlob($pattern) 
    102102  { 
    103     $files = glob($pattern); 
     103    if (false === $files = glob($pattern)) 
     104    { 
     105      return; 
     106    } 
    104107 
    105108    // order is important when removing directories