cvs: php4 /pear/PEAR Common.php
| From: | Stig Bakken | Date: | Wed, 30 Jan 2002 12:18:10 +0000 |
| Subject: | cvs: php4 /pear/PEAR Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2240@lists.php.net to get a copy of this message | ||
ssb Wed Jan 30 07:18:10 2002 EDT
Modified files:
/php4/pear/PEAR Common.php
Log:
* silence warning
Index: php4/pear/PEAR/Common.php
diff -u php4/pear/PEAR/Common.php:1.30 php4/pear/PEAR/Common.php:1.31
--- php4/pear/PEAR/Common.php:1.30 Fri Dec 28 14:27:08 2001
+++ php4/pear/PEAR/Common.php Wed Jan 30 07:18:10 2002
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.30 2001/12/28 19:27:08 cox Exp $
+// $Id: Common.php,v 1.31 2002/01/30 12:18:10 ssb Exp $
require_once 'PEAR.php';
require_once 'Archive/Tar.php';
@@ -280,8 +280,10 @@
case 'file':
$this->current_file = $data;
$path = '';
- foreach ($this->dir_names as $dir) {
- $path .= $dir . DIRECTORY_SEPARATOR;
+ if (!empty($this->dir_names)) {
+ foreach ($this->dir_names as $dir) {
+ $path .= $dir . DIRECTORY_SEPARATOR;
+ }
}
$path .= $this->current_file;
$this->filelist[$path] = $this->current_attributes;
@@ -299,8 +301,10 @@
case 'libfile':
$this->lib_name = $data;
$path = '';
- foreach ($this->dir_names as $dir) {
- $path .= $dir . DIRECTORY_SEPARATOR;
+ if (!empty($this->dir_names)) {
+ foreach ($this->dir_names as $dir) {
+ $path .= $dir . DIRECTORY_SEPARATOR;
+ }
}
$path .= $this->lib_name;
$this->filelist[$path] = $this->lib_atts;