From 073f9ec70f03eb974861798dba897d3d36429bd8 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Wed, 18 Jul 2001 17:11:28 +0000 Subject: [PATCH] killed some warnings --- pear/PEAR/Common.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index f8fbfde2d1..50d37e3aef 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -57,9 +57,9 @@ class PEAR_Common extends PEAR while (is_array($this->_tempfiles) && $file = array_shift($this->_tempfiles)) { - if (is_dir($file)) { + if (@is_dir($file)) { system("rm -rf $file"); // XXX FIXME Windows - } else { + } elseif (file_exists($file)) { unlink($file); } } @@ -85,7 +85,7 @@ class PEAR_Common extends PEAR } while ($newdir = array_shift($dirstack)) { if (mkdir($newdir, 0777)) { - $this->log(2, "created dir $newdir"); + $this->log(2, "+ created dir $newdir"); } else { return false; } -- 2.50.1