Skip to content

Commit

Permalink
'Added error checking for the 'list-all' Remote call'
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/PEAR_Info/trunk@125707 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
dshafik committed May 4, 2003
1 parent 11561eb commit d6f518a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ function getPackages()
}
$available = $_SESSION['available'];
$latest = $_SESSION['latest'];
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.'")');
}
$packages = '';
foreach ($available as $name => $info) {
$installed = $this->reg->packageInfo($name);
Expand Down

0 comments on commit d6f518a

Please sign in to comment.