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->date = DateTime::createFromFormat('Y-m-d H:i:s', $data['date']);
|
||||||
$this->setClosed($data['closed']);
|
$this->setClosed($data['closed']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Override parent load() method
|
// 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
|
$return = parent::load($fields, $first_only); // Execute parent load
|
||||||
|
|
||||||
if(is_array($return)) {
|
if(is_array($return)) {
|
||||||
|
@ -125,10 +125,10 @@
|
|||||||
|
|
||||||
$this->date = DateTime::createFromFormat('Y-m-d H:i:s', $data['date']);
|
$this->date = DateTime::createFromFormat('Y-m-d H:i:s', $data['date']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Override parent load() method
|
// 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
|
$return = parent::load($fields, $first_only); // Execute parent load
|
||||||
|
|
||||||
if(is_array($return)) {
|
if(is_array($return)) {
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
// Override load() method
|
// Override load() method
|
||||||
// ======================
|
// ======================
|
||||||
public function load() {
|
public function load($fields = NULL, $first_only = false, $key_array = 'id') {
|
||||||
$query = 'SELECT ';
|
$query = 'SELECT ';
|
||||||
|
|
||||||
$i = false;
|
$i = false;
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
// Override load() method
|
// Override load() method
|
||||||
// ======================
|
// ======================
|
||||||
public function load() {
|
public function load($fields = NULL, $first_only = false, $key_array = 'id') {
|
||||||
$query = 'SELECT ';
|
$query = 'SELECT ';
|
||||||
|
|
||||||
$i = false;
|
$i = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user