Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 35cacd7

Browse files
committed
Handling edge case for DVM.
1 parent 0d8e694 commit 35cacd7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Robo/Inspector/Inspector.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,11 @@ protected function setDrupalVmStatus() {
530530
->run();
531531
$output = $result->getOutputData();
532532
$lines = explode("\n", $output);
533-
foreach ($lines as $line) {
534-
list($timestamp, $target, $type, $data) = explode(',', $line);
535-
$this->drupalVmStatus[$target][$type] = $data;
533+
if ($lines) {
534+
foreach ($lines as $line) {
535+
list($timestamp, $target, $type, $data) = explode(',', $line);
536+
$this->drupalVmStatus[$target][$type] = $data;
537+
}
536538
}
537539
}
538540

0 commit comments

Comments
 (0)