Skip to content

Commit

Permalink
Fixing library include option.
Browse files Browse the repository at this point in the history
  • Loading branch information
michelf committed Nov 29, 2013
1 parent 97eb69d commit fc14783
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mdtest.php
Expand Up @@ -116,7 +116,9 @@ function millisec() {
require DIRECTORY_SEPARATOR .
preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php';
});
} else if (!is_file($lib)) {
} else if (is_file($lib)) {
include_once $lib;
} else {
exit("$argv[0]: library '$lib' does not exist.\n");
}

Expand Down

0 comments on commit fc14783

Please sign in to comment.