diff --git a/src/KirbyGitHelper.php b/src/KirbyGitHelper.php index 9646e54..66c07b7 100755 --- a/src/KirbyGitHelper.php +++ b/src/KirbyGitHelper.php @@ -150,7 +150,7 @@ public function status() { $hasRemote = false; $diff = null; foreach ($upstreamResponse as $key => $line) { - if (str_contains($line, 'branch.ab')) { + if (!empty($line) && strpos($line, 'branch.ab') !== false) { $hasRemote = true; preg_match('/\+\d+/', $line, $ahead);