From 5ca1e0b7442515ccf9b6f6b6b4e98c3aac66b47a Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Fri, 8 Aug 2008 03:52:48 +0000 Subject: [PATCH] MINOR: Fix php notice git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60157 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/ClassInfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ClassInfo.php b/core/ClassInfo.php index c95f830f6..ead9e7b1a 100755 --- a/core/ClassInfo.php +++ b/core/ClassInfo.php @@ -132,7 +132,7 @@ class ClassInfo { $items = $_ALL_CLASSES['parents'][$class]; $items[$class] = $class; if($onlyWithTables) foreach($items as $item) { - if(!$_ALL_CLASSES['hastable'][$item]) unset($items[$item]); + if(!isset($_ALL_CLASSES['hastable'][$item]) || !$_ALL_CLASSES['hastable'][$item]) unset($items[$item]); } return $items; } @@ -146,4 +146,4 @@ class ClassInfo { return (isset($_ALL_CLASSES['implementors'][$interfaceName])) ? $_ALL_CLASSES['implementors'][$interfaceName] : false; } } -?> \ No newline at end of file +?>