diff --git a/inc/GlobalPaybacks.class.php b/inc/GlobalPaybacks.class.php index d3e576b..0b314e0 100644 --- a/inc/GlobalPaybacks.class.php +++ b/inc/GlobalPaybacks.class.php @@ -83,10 +83,10 @@ $this->date = DateTime::createFromFormat('Y-m-d H:i:s', $data['date']); $this->setClosed($data['closed']); } - + // Override parent load() method // ============================= - public function load($fields = NULL, $first_only = false) { + public function load($fields = NULL, $first_only = false, $key_array = 'id') { $return = parent::load($fields, $first_only); // Execute parent load if(is_array($return)) { diff --git a/inc/Invoices.class.php b/inc/Invoices.class.php index b12e099..90e5e08 100644 --- a/inc/Invoices.class.php +++ b/inc/Invoices.class.php @@ -125,10 +125,10 @@ $this->date = DateTime::createFromFormat('Y-m-d H:i:s', $data['date']); } - + // Override parent load() method // ============================= - public function load($fields = NULL, $first_only = false) { + public function load($fields = NULL, $first_only = false, $key_array = 'id') { $return = parent::load($fields, $first_only); // Execute parent load if(is_array($return)) { diff --git a/inc/UsersIn.class.php b/inc/UsersIn.class.php index f740b1f..6eae1a8 100644 --- a/inc/UsersIn.class.php +++ b/inc/UsersIn.class.php @@ -65,7 +65,7 @@ // Override load() method // ====================== - public function load() { + public function load($fields = NULL, $first_only = false, $key_array = 'id') { $query = 'SELECT '; $i = false; diff --git a/inc/UsersInGlobalPayback.class.php b/inc/UsersInGlobalPayback.class.php index 478277b..688230f 100755 --- a/inc/UsersInGlobalPayback.class.php +++ b/inc/UsersInGlobalPayback.class.php @@ -86,7 +86,7 @@ // Override load() method // ====================== - public function load() { + public function load($fields = NULL, $first_only = false, $key_array = 'id') { $query = 'SELECT '; $i = false;