Skip to content

Commit

Permalink
Avoid invalid invocation of SQL parser
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jan 26, 2016
1 parent 76b1018 commit c57d3cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/sql-parser/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
namespace SqlParser\Autoload;

if (!class_exists('SqlParser\\Autoload\\ClassLoader')) {
if (! file_exists('./libraries/sql-parser/ClassLoader.php')) {
die('Invalid invocation');
}
include_once './libraries/sql-parser/ClassLoader.php';
}

Expand Down

0 comments on commit c57d3cc

Please sign in to comment.