mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 05:14:48 -04:00
Add Db::QueryBool() and some code style updates
This commit is contained in:
parent
854ec6b9df
commit
44901cf3e2
9 changed files with 100 additions and 77 deletions
|
@ -2,11 +2,10 @@
|
|||
<?
|
||||
require_once('/standardebooks.org/web/lib/Core.php');
|
||||
|
||||
// Delete unconfirmed newsletter subscribers who are more than a week old
|
||||
// Delete unconfirmed newsletter subscribers who are more than a week old.
|
||||
Db::Query('
|
||||
DELETE
|
||||
from NewsletterSubscriptions
|
||||
where IsConfirmed = false
|
||||
and datediff(utc_timestamp(), Created) >= 7
|
||||
');
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue