summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Fischer <mfischer@php.net>2002-04-13 06:00:36 +0000
committerMarkus Fischer <mfischer@php.net>2002-04-13 06:00:36 +0000
commit509ef0237f0a1ff0a0877d2e6ca9fd2280394cc3 (patch)
treeb22e8b86124ca2fbc1da153c370cf6766b3c2976
parent0fa1516483a4d7b717eb4d3aa2f208087cab8cef (diff)
downloadphp-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.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");