X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/3c0605419d071c567f800148d2343ad6a85c7735..f1d6f647c38d0ebf78f812bf551e0ab2b4f48a70:/src/phorkie/ForkRemote.php diff --git a/src/phorkie/ForkRemote.php b/src/phorkie/ForkRemote.php index 76eec05..78c3caa 100644 --- a/src/phorkie/ForkRemote.php +++ b/src/phorkie/ForkRemote.php @@ -22,6 +22,11 @@ class ForkRemote public function parse() { + if ($this->url == '') { + $this->error = 'Empty fork URL'; + return false; + } + $arUrl = parse_url($this->url); $scheme = isset($arUrl['scheme']) ? $arUrl['scheme'] : '';