Skip to content

Commit 9076191

Browse files
committed
avoid warning about bool as array
1 parent db2ce97 commit 9076191

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PEAR/Command/Channels.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,9 @@ function doUpdate($command, $options, $params)
558558
$c->getName() . '" (' . $contents->getMessage() . ')');
559559
}
560560
}
561-
562-
list($contents, $lastmodified) = $contents;
561+
if (is_array($contents)) {
562+
list($contents, $lastmodified) = $contents;
563+
}
563564
if (!$contents) {
564565
$this->ui->outputData("Channel \"$params[0]\" is up to date");
565566
return;

0 commit comments

Comments
 (0)