From: edward Date: Fri, 15 Sep 2017 03:27:34 +0000 (+0800) Subject: DataObjects/Core_company.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=744783bf9ff579ac0e11aa518b074aa3aceaef1c DataObjects/Core_company.php --- diff --git a/DataObjects/Core_company.php b/DataObjects/Core_company.php index b9136290..054792c4 100644 --- a/DataObjects/Core_company.php +++ b/DataObjects/Core_company.php @@ -446,7 +446,7 @@ class Pman_Core_DataObjects_Core_Company extends DB_DataObject { $affects = array(); - $all_links = method_exists($this, 'databaseLinks') ? $x->databaseLinks() : $GLOBALS['_DB_DATAOBJECT']['LINKS'][$this->_database]; + $all_links = $x->databaseLinks(); foreach($all_links as $tbl => $links) { foreach($links as $col => $totbl_col) {