From 0bf7698cac0cd9fb9ced6069e6417a4ab0c77afd Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Wed, 16 Apr 2014 08:57:17 +0100 Subject: [PATCH] Check $this->path is set before use, fixes #355 --- PHPCI/Plugin/PhpMessDetector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPCI/Plugin/PhpMessDetector.php b/PHPCI/Plugin/PhpMessDetector.php index c634c238..c5e56e4e 100755 --- a/PHPCI/Plugin/PhpMessDetector.php +++ b/PHPCI/Plugin/PhpMessDetector.php @@ -100,7 +100,7 @@ class PhpMessDetector implements \PHPCI\Plugin } $path = $this->phpci->buildPath . $this->path; - if ($this->path{0} == '/') { + if (!empty($this->path) && $this->path{0} == '/') { $path = $this->path; }