]> granicus.if.org Git - php/commitdiff
add errormessage, but that does not fix the problem
authorChristian Dickmann <dickmann@php.net>
Sun, 24 Nov 2002 10:06:54 +0000 (10:06 +0000)
committerChristian Dickmann <dickmann@php.net>
Sun, 24 Nov 2002 10:06:54 +0000 (10:06 +0000)
pear/PEAR/Command/Remote.php

index 0e6e94d11d776dcd911d8cfd18cbacf7962666aa..1af8902cf211ee6476e3fe35e8f9608f896caeea 100644 (file)
@@ -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,