Bug correction with PHP5.4 due to Strict standards

This commit is contained in:
Phyks (Lucas Verney) 2013-12-20 13:20:10 +01:00
parent bbf107aa69
commit 21b7b7e64c
4 changed files with 6 additions and 6 deletions

View File

@ -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)) {

View File

@ -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)) {

View File

@ -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;

View File

@ -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;