Fix warnings on safe mode

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40503 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-08-20 03:50:57 +00:00
parent e4e971a18f
commit 56c9becd0f
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ require_once(MANIFEST_FILE);
$hasPhpUnit = false;
$paths = explode(PATH_SEPARATOR, ini_get('include_path'));
foreach($paths as $path) {
if(file_exists("$path/PHPUnit/Framework.php")) $hasPhpUnit = true;
if(@file_exists("$path/PHPUnit/Framework.php")) $hasPhpUnit = true;
}
if($hasPhpUnit) {

View File

@ -4,7 +4,7 @@
$hasPhpUnit = false;
$paths = explode(PATH_SEPARATOR, ini_get('include_path'));
foreach($paths as $path) {
if(file_exists("$path/PHPUnit/Framework.php")) $hasPhpUnit = true;
if(@file_exists("$path/PHPUnit/Framework.php")) $hasPhpUnit = true;
}
if($hasPhpUnit) {