Skip to content

Commit 2c6ad70

Browse files
authored
Site path found, break from loops
1 parent 3567612 commit 2c6ad70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,11 @@ function valet_default_site_path($config)
137137
// match dir for lowercase, because Nginx only tells us lowercase names
138138
if (strtolower($file) === $siteName) {
139139
$valetSitePath = $path.'/'.$file;
140-
break;
140+
break 2;
141141
}
142142
if (strtolower($file) === $domain) {
143143
$valetSitePath = $path.'/'.$file;
144+
break 2;
144145
}
145146
}
146147
closedir($handle);

0 commit comments

Comments
 (0)