Address upcoming string interpolation deprecation.
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
This commit is contained in:
@@ -61,7 +61,7 @@ class Pref_Labels extends Handler_Protected {
|
||||
|
||||
if ($kind == "fg" || $kind == "bg") {
|
||||
$sth = $this->pdo->prepare("UPDATE ttrss_labels2 SET
|
||||
${kind}_color = ? WHERE id = ?
|
||||
{$kind}_color = ? WHERE id = ?
|
||||
AND owner_uid = ?");
|
||||
|
||||
$sth->execute([$color, $id, $_SESSION['uid']]);
|
||||
|
||||
@@ -240,7 +240,7 @@ class Pref_Prefs extends Handler_Protected {
|
||||
$user->full_name = clean($_POST['full_name']);
|
||||
|
||||
if ($user->email != $new_email) {
|
||||
Logger::log(E_USER_NOTICE, "Email address of user ".$user->login." has been changed to ${new_email}.");
|
||||
Logger::log(E_USER_NOTICE, "Email address of user {$user->login} has been changed to {$new_email}.");
|
||||
|
||||
if ($user->email) {
|
||||
$mailer = new Mailer();
|
||||
|
||||
Reference in New Issue
Block a user