Skip to content

Commit 83a0410

Browse files
Adding enabled to ch diagnostics header
1 parent 9817217 commit 83a0410

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

includes/class-crowdhandler-diagnostics.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ public function addCHDiagnostics($headers)
2222
{
2323
if($this->options){
2424
$indexOverride = (isset($this->options['crowdhandler_settings_field_override_index'])) ? '1' : '0';
25+
$isEnabled = (isset($this->options['crowdhandler_settings_field_is_enabled'])) ? '1' : '0';
2526
$timestamp = new DateTime();
2627
$formatedTime = $timestamp->format(DateTime::ISO8601);
27-
$headers['x-crowdhandler-info'] = $this->options['crowdhandler_settings_field_public_key'] . '::' . $indexOverride . '::' . $formatedTime;
28+
$headers['x-crowdhandler-info'] = $this->options['crowdhandler_settings_field_public_key'] . '::' . $indexOverride . '::' . $isEnabled .'::' . $formatedTime;
2829
}
2930
return $headers;
3031
}

0 commit comments

Comments
 (0)