Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #142 from rezzza/fix_autoload

Alias on a real class must be done only if the autoloader has loaded the real class, thanks to @stephpy for its help.
  • Loading branch information...
commit 81f43386626e201befd8b51cc489e76a4e263539 2 parents 989a528 + d8f803e
@mageekguy mageekguy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  classes/autoloader.php
View
2  classes/autoloader.php
@@ -110,7 +110,7 @@ public function requireClass($class)
require $path;
}
- if ($realClass != $class)
+ if (class_exists($realClass, false) === true && $realClass != $class)
{
class_alias($realClass, $class);
}
Please sign in to comment.
Something went wrong with that request. Please try again.