balance update bug fix (balance NULL case)
This commit is contained in:
@@ -504,6 +504,7 @@ class user_kid extends user_parent {
|
||||
|
||||
|
||||
if (isset($_de)) $sql->update_table('user_kid', (array('uk_balance' => $_de->get_de_balance())), array('uk_id' => (is_object($_user_obj)?$_user_obj->get_uk_id():$this->get_uk_id())), false);
|
||||
else $sql->update_table('user_kid', (array('uk_balance' => 0)), array('uk_id' => (is_object($_user_obj)?$_user_obj->get_uk_id():$this->get_uk_id())), false);
|
||||
|
||||
return $_de_obj_array;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ if ($this->is_id()) {
|
||||
1 - egyenleg szerint növekvő
|
||||
*/
|
||||
|
||||
$order_by = 'uk_balance ASC';
|
||||
$order_by = 'uk_balance ASC, uk_name ASC';
|
||||
$url_postfix = '/' . $this->get_id();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user