Check $this->path is set before use, fixes #355

This commit is contained in:
Dan Cryer 2014-04-16 08:57:17 +01:00
commit 0bf7698cac

View file

@ -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;
}