From 7dd3e5e6831d659fe2c4fb73a25a0bad620e11de Mon Sep 17 00:00:00 2001 From: Christian Dickmann Date: Sun, 24 Nov 2002 10:06:54 +0000 Subject: [PATCH] add errormessage, but that does not fix the problem --- pear/PEAR/Command/Remote.php | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.50.1