Skip to content

Commit cd930ed

Browse files
authored
Merge pull request #1018 from mrk-j/patch-1
Site path found, break from loops
2 parents 86a830a + f994e01 commit cd930ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,14 @@ function valet_default_site_path($config)
141141
}
142142
if (strtolower($file) === $domain) {
143143
$valetSitePath = $path.'/'.$file;
144+
break;
144145
}
145146
}
146147
closedir($handle);
148+
149+
if ($valetSitePath) {
150+
break;
151+
}
147152
}
148153
}
149154

0 commit comments

Comments
 (0)