summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/PEAR/Installer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php
index 721008f360..57c5b1355d 100644
--- a/pear/PEAR/Installer.php
+++ b/pear/PEAR/Installer.php
@@ -100,6 +100,9 @@ class PEAR_Installer extends PEAR_Common
function _deletePackageFiles($package)
{
+ if (!strlen($package)) {
+ return $this->raiseError("No package to uninstall given");
+ }
$filelist = $this->registry->packageInfo($package, 'filelist');
if ($filelist == null) {
return $this->raiseError("$package not installed");