diff options
author | Markus Fischer <mfischer@php.net> | 2002-04-13 06:00:36 +0000 |
---|---|---|
committer | Markus Fischer <mfischer@php.net> | 2002-04-13 06:00:36 +0000 |
commit | 509ef0237f0a1ff0a0877d2e6ca9fd2280394cc3 (patch) | |
tree | b22e8b86124ca2fbc1da153c370cf6766b3c2976 | |
parent | 0fa1516483a4d7b717eb4d3aa2f208087cab8cef (diff) | |
download | php-git-509ef0237f0a1ff0a0877d2e6ca9fd2280394cc3.tar.gz |
- Also raise a different error message if we don't specify any package at all.
# We might consider giving the 'pear help uninstall' output to the user?
-rw-r--r-- | pear/PEAR/Installer.php | 3 |
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"); |