Skip to content
Permalink
Browse files

BUG Fix ClassInfo::table_for_object_field

  • Loading branch information...
Damian Mooyman
Damian Mooyman committed Sep 17, 2015
1 parent 8ddb4c7 commit e64d73c1f741399412b6015f6602ed707b2e9778
Showing with 5 additions and 1 deletion.
  1. +5 −1 core/ClassInfo.php
@@ -291,7 +291,11 @@ public static function has_method_from($class, $method, $compclass) {
* @return string
*/
public static function table_for_object_field($candidateClass, $fieldName) {
if(!$candidateClass || !$fieldName || !is_subclass_of($candidateClass, 'DataObject')) {
if(!$candidateClass
|| !$fieldName
|| !class_exists($candidateClass)
|| !is_subclass_of($candidateClass, 'DataObject')
) {
return null;
}

0 comments on commit e64d73c

Please sign in to comment.
You can’t perform that action at this time.