fixed de expire status (set by diary entry)
This commit is contained in:
1 parent
a51d912b68
commit
331be6e03d
1 file changed
+2
-4
@@ -612,11 +612,9 @@ class user_kid extends user_parent {
|
|||||||
else {
|
else {
|
||||||
$_de->set_de_balance($balance);
|
$_de->set_de_balance($balance);
|
||||||
}
|
}
|
||||||
//var_dump($_de->get_de_date());
|
/* if ($_de->get_de_date() > date('Y-m-d 23:59:59', strtotime($actualExpireDate))) {
|
||||||
//var_dump(date('Y-m-d 23:59:59', strtotime($actualExpireDate)));
|
|
||||||
if ($_de->get_de_date() > date('Y-m-d 23:59:59', strtotime($actualExpireDate))) {
|
|
||||||
$_de->set_de_expired(true);
|
$_de->set_de_expired(true);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if ($_de->get_de_date() > date('Y-m-d 23:59:59', strtotime($actualExpireDate)) && $_de->get_de_balance() > 0) {
|
if ($_de->get_de_date() > date('Y-m-d 23:59:59', strtotime($actualExpireDate)) && $_de->get_de_balance() > 0) {
|
||||||
$_de->set_de_balance(0);
|
$_de->set_de_balance(0);
|
||||||
|
|||||||
Reference in new issue
Block a user