Development

Changeset 10006

You must first sign up to be able to contribute.

Changeset 10006

Show
Ignore:
Timestamp:
06/30/08 07:26:07 (5 years ago)
Author:
dwhittle
Message:

dwhittle: fixed possible notice in prove script

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/dwhittle/1.1/test/bin/prove.php

    r8082 r10006  
    2626 
    2727require_once(dirname(__FILE__).'/../../lib/util/sfToolkit.class.php'); 
    28 foreach (glob(sfToolkit::getTmpDir().DIRECTORY_SEPARATOR.'/sf_autoload_unit_*') as $file
     28if($files = glob(sfToolkit::getTmpDir().DIRECTORY_SEPARATOR.'/sf_autoload_unit_*')
    2929{ 
    30   unlink($file); 
     30  foreach ($files as $file) 
     31  { 
     32    unlink($file); 
     33  } 
    3134} 
    3235