Permalink
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...
2 parents 989a528 + d8f803e commit 81f43386626e201befd8b51cc489e76a4e263539 @mageekguy mageekguy committed Nov 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/autoloader.php
View
@@ -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);
}

0 comments on commit 81f4338

Please sign in to comment.