Skip to content

Commit

Permalink
fix warning in rare case (file doesn't exist in package.xml)
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Beaver committed Oct 4, 2003
1 parent 6a25171 commit 77c0beb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pear/PEAR/Installer.php
Expand Up @@ -504,7 +504,8 @@ function rollbackFileTransaction()
$data[3] = dirname($data[3]);
}
}
if (!count($this->pkginfo['filelist']['dirtree'])) {
if (isset($this->pkginfo['filelist']['dirtree'])
&& !count($this->pkginfo['filelist']['dirtree'])) {
unset($this->pkginfo['filelist']['dirtree']);
}
break;
Expand Down

0 comments on commit 77c0beb

Please sign in to comment.