mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
266ff8a796
commit
53016680d5
@ -10,7 +10,7 @@ class ClassInfo {
|
|||||||
*/
|
*/
|
||||||
static function ready() {
|
static function ready() {
|
||||||
global $_ALL_CLASSES;
|
global $_ALL_CLASSES;
|
||||||
return $_ALL_CLASSES && $_ALL_CLASSES['hastable'];
|
return $_ALL_CLASSES && isset($_ALL_CLASSES['hastable']) && $_ALL_CLASSES['hastable'];
|
||||||
}
|
}
|
||||||
static function allClasses() {
|
static function allClasses() {
|
||||||
global $_ALL_CLASSES;
|
global $_ALL_CLASSES;
|
||||||
|
Loading…
Reference in New Issue
Block a user