Skip to content

Commit abb53ff

Browse files
committed
tracking down a bug with the offset in a var
1 parent 480205f commit abb53ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PatternLab/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ public static function getOptions() {
8080
*
8181
* @return {String} the final, post-2.1.0-style styleguideKitPath
8282
*/
83-
protected static function getStyleguideKitPath($styleguideKitPath) {
83+
protected static function getStyleguideKitPath($styleguideKitPath = "") {
8484

8585
$styleguideKitPathFinal = "";
86-
if ($styleguideKitPath[0] == DIRECTORY_SEPARATOR) {
86+
if (isset($styleguideKitPath[0]) && ($styleguideKitPath[0] == DIRECTORY_SEPARATOR)) {
8787
if (strpos($styleguideKitPath, DIRECTORY_SEPARATOR."vendor".DIRECTORY_SEPARATOR === 0)) {
8888
$styleguideKitPathFinal = $styleguideKitPath; // mistaken set-up, pass to final for clean-up
8989
} else if (strpos($styleguideKitPath, self::$options["baseDir"]) === 0) {

0 commit comments

Comments
 (0)