From: Christian Dickmann Date: Sun, 24 Nov 2002 10:06:54 +0000 (+0000) Subject: add errormessage, but that does not fix the problem X-Git-Tag: RELEASE_1_0b2~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dd3e5e6831d659fe2c4fb73a25a0bad620e11de;p=php add errormessage, but that does not fix the problem --- diff --git a/pear/PEAR/Command/Remote.php b/pear/PEAR/Command/Remote.php index 0e6e94d11d..1af8902cf2 100644 --- a/pear/PEAR/Command/Remote.php +++ b/pear/PEAR/Command/Remote.php @@ -170,6 +170,9 @@ version of DB is 1.2, the downloaded file will be DB-1.2.tgz.', if (PEAR::isError($available)) { return $this->raiseError($available); } + if (!is_array($available)) { + return $this->raiseError('The package list could not be fetched from the remote server. Please try again. (Debug info: "'.$available.'")'); + } $data = array( 'caption' => 'All packages:', 'border' => true,