From 53016680d5d4b5519fd24a47bb694bd88554d0b5 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Sep 2007 17:24:24 +0000 Subject: [PATCH] isset()-check in ready() (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42153 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/ClassInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ClassInfo.php b/core/ClassInfo.php index 94fe3366a..c72f370c3 100755 --- a/core/ClassInfo.php +++ b/core/ClassInfo.php @@ -10,7 +10,7 @@ class ClassInfo { */ static function ready() { global $_ALL_CLASSES; - return $_ALL_CLASSES && $_ALL_CLASSES['hastable']; + return $_ALL_CLASSES && isset($_ALL_CLASSES['hastable']) && $_ALL_CLASSES['hastable']; } static function allClasses() { global $_ALL_CLASSES;