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

@ -86,7 +86,7 @@
// 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)) {

View File

@ -128,7 +128,7 @@
// 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)) {

View File

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

View File

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