From 3c0605419d071c567f800148d2343ad6a85c7735 Mon Sep 17 00:00:00 2001 From: "Justin J. Novack" Date: Sun, 7 Oct 2012 16:32:08 -0400 Subject: [PATCH] Correct E_NOTICE on error when remote forking. --- src/phorkie/ForkRemote.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phorkie/ForkRemote.php b/src/phorkie/ForkRemote.php index 3f6a478..76eec05 100644 --- a/src/phorkie/ForkRemote.php +++ b/src/phorkie/ForkRemote.php @@ -23,7 +23,7 @@ class ForkRemote public function parse() { $arUrl = parse_url($this->url); - $scheme = $arUrl['scheme'] ?: ''; + $scheme = isset($arUrl['scheme']) ? $arUrl['scheme'] : ''; if ($scheme == 'https' && isset($arUrl['host']) && $arUrl['host'] == 'gist.github.com' -- 2.30.2