From ec642f1fad96b5d91c0202e8788d1b252d1ccbd3 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 29 Mar 2010 00:42:51 +0000 Subject: [PATCH] MINOR Marked DataObject::has_own_table() as static git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@101782 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/DataObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/DataObject.php b/core/model/DataObject.php index ca798eb6e..32544e655 100755 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -2218,7 +2218,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity * @param string $dataClass * @return bool */ - public function has_own_table($dataClass) { + public static function has_own_table($dataClass) { // The condition below has the same effect as !is_subclass_of($dataClass,'DataObject'), // which causes PHP < 5.3 to segfault in rare circumstances, see PHP bug #46753