diff options
-rw-r--r-- | pear/PEAR/Command/Remote.php | 3 |
1 files changed, 3 insertions, 0 deletions
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, |