argument order reversed in downgrade_accounts

This commit is contained in:
friendica 2014-09-09 17:25:31 -07:00
parent 537f101554
commit 18f8f08367

View File

@ -513,8 +513,8 @@ function downgrade_accounts() {
$r = q("select * from account where not ( account_flags & %d )
and account_expires != '%s'
and account_expires < UTC_TIMESTAMP() ",
dbesc(NULL_DATE),
intval(ACCOUNT_EXPIRED)
intval(ACCOUNT_EXPIRED),
dbesc(NULL_DATE)
);
if(! $r)