Skip to content

Commit

Permalink
Change config parameter to string.
Browse files Browse the repository at this point in the history
The way it gets read in by other languages can cause an "array to
string" notice.
  • Loading branch information
dracos committed Dec 19, 2023
1 parent a19a204 commit 23d2313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/general-example
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ define ("BUGSLIST", CONTACTEMAIL);
// Email addresses that alertmailer.php sends stats to
define('ALERT_STATS_EMAILS', CONTACTEMAIL);

define('ALERT_NO_EMAIL', []);
define('ALERT_NO_EMAIL', '');

// Problems with loading in the morning etc.
define('PROBLEM_EMAIL', CONTACTEMAIL);
Expand Down
2 changes: 1 addition & 1 deletion www/includes/easyparliament/alert.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function add($details, $confirmation_email=false, $instantly_confirm=true

public function send_confirmation_email($details) {

if (in_array($details['email'], ALERT_NO_EMAIL)) {
if (in_array($details['email'], explode(',', ALERT_NO_EMAIL))) {
return false;
}

Expand Down

0 comments on commit 23d2313

Please sign in to comment.