fix subscriptions feature for php8 and add mailhog

This commit is contained in:
Steffen Müller
2024-04-10 15:42:19 +02:00
parent 788ca4ccd0
commit ee37419582
4 changed files with 22 additions and 4 deletions
+2 -2
View File
@@ -190,7 +190,7 @@ Class Subscriber
{
global $mysqli;
// error_log(print_r($token, TRUE));
$stmt = $mysqli->prepare("SELECT subscriberID, token, userID, active, expires FROM subscribers WHERE token LIKE ? LIMIT 1");
$stmt->bind_param("s", $token );
$stmt->execute();
@@ -202,7 +202,7 @@ Class Subscriber
// No data found, fail gently...
return false;
}
// error_log(print_r($row, TRUE));
// If account is not already active, check if we are within timeframe of exipre +2h
// and active if so, otherwise,delete account and return falsev
if ( $row['active'] <> 1 ) {