Bug correction with PHP5.4 due to Strict standards
This commit is contained in:
parent
bbf107aa69
commit
21b7b7e64c
@ -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)) {
|
||||
|
@ -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)) {
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user