Skip to content

Commit

Permalink
CampTix Attendance: Set default value for secret-generated to avoid…
Browse files Browse the repository at this point in the history
… notice.
  • Loading branch information
iandunn committed Oct 10, 2023
1 parent c9e206f commit 9cceeb3
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
* Allows event organizers to track which attendees showed up to the event.
*/
class CampTix_Attendance extends CampTix_Addon {
public $secret = '';
public $questions = array();
public $secret_expiry = '2 weeks';
public $secret = '';
public $secret_generated = '';
public $questions = array();
public $secret_expiry = '2 weeks';

/**
* Runs during CampTix init.
Expand All @@ -25,7 +26,7 @@ public function camptix_init() {
return;

$this->secret = $camptix_options['attendance-secret'];
$this->secret_generated = $camptix_options['attendance-secret-generated'];
$this->secret_generated = $camptix_options['attendance-secret-generated'] ?? '';

if ( isset( $camptix_options['attendance-questions'] ) ) {
$this->questions = $camptix_options['attendance-questions'];
Expand Down

0 comments on commit 9cceeb3

Please sign in to comment.