Author: fabien
Date: 2010-05-19 15:01:43 +0200 (Wed, 19 May 2010)
New Revision: 29525
Modified:
branches/1.3/lib/util/sfToolkit.class.php
branches/1.4/lib/util/sfToolkit.class.php
Log:
[1.3, 1.4] fixed a warning (closes #8547)
Modified: branches/1.3/lib/util/sfToolkit.class.php
===================================================================
--- branches/1.3/lib/util/sfToolkit.class.php 2010-05-19 12:55:30 UTC (rev
29524)
+++ branches/1.3/lib/util/sfToolkit.class.php 2010-05-19 13:01:43 UTC (rev
29525)
@@ -100,7 +100,10 @@
*/
public static function clearGlob($pattern)
{
- $files = glob($pattern);
+ if (false === $files = glob($pattern))
+ {
+ return;
+ }
// order is important when removing directories
sort($files);
Modified: branches/1.4/lib/util/sfToolkit.class.php
===================================================================
--- branches/1.4/lib/util/sfToolkit.class.php 2010-05-19 12:55:30 UTC (rev
29524)
+++ branches/1.4/lib/util/sfToolkit.class.php 2010-05-19 13:01:43 UTC (rev
29525)
@@ -100,7 +100,10 @@
*/
public static function clearGlob($pattern)
{
- $files = glob($pattern);
+ if (false === $files = glob($pattern))
+ {
+ return;
+ }
// order is important when removing directories
sort($files);
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.