null_date conversion; phase 1

This commit is contained in:
redmatrix
2016-09-25 17:06:13 -07:00
parent 4e85bc66b8
commit fb9544badd
18 changed files with 31 additions and 31 deletions
+2 -2
View File
@@ -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),