Skip to content

Commit

Permalink
One does not simply merge into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr committed Nov 8, 2017
1 parent 5d81214 commit dc112ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/endpoint/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@

$docRoot = getenv('DOCUMENT_ROOT');

while ($docRoot !== '/') {
while ('/' !== $docRoot) {
$vendor = glob($docRoot . '/vendor');
if (!empty($vendor)) {
require_once current($vendor) . '/autoload.php';

break;
}
$docRoot = dirname($docRoot);
Expand Down

0 comments on commit dc112ac

Please sign in to comment.