From fb9544badd66043bf7ee5a7566ba288ad7da29fa Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 25 Sep 2016 17:06:13 -0700 Subject: null_date conversion; phase 1 --- include/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/account.php') diff --git a/include/account.php b/include/account.php index 47310912f..bd4da6a52 100644 --- a/include/account.php +++ b/include/account.php @@ -548,8 +548,8 @@ function account_approve($hash) { */ function downgrade_accounts() { - $r = q("select * from account where not ( account_flags & %d )>0 - and account_expires != '%s' + $r = q("select * from account where not ( account_flags & %d ) > 0 + and account_expires > '%s' and account_expires < %s ", intval(ACCOUNT_EXPIRED), dbesc(NULL_DATE), -- cgit v1.2.3