From: Markus Fischer Date: Sat, 13 Apr 2002 06:00:36 +0000 (+0000) Subject: - Also raise a different error message if we don't specify any package at all. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~667 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=509ef0237f0a1ff0a0877d2e6ca9fd2280394cc3;p=php - 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? --- 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");