diff --git a/report-expiry.php b/report-expiry.php
index 085bbfa6d916cc52197b957aabfc56cecd4dae06..2e2e36b829726dc4c07102b8b832f13c1cc946f2 100644
--- a/report-expiry.php
+++ b/report-expiry.php
@@ -52,7 +52,7 @@ function report( $exit = true ): void {
 		];
 
 		if ( ! $dir_includes_expired && $cert_data[3] <= 0 ) {
-			$dir_includes_expired;
+			$dir_includes_expired = true;
 		}
 
 		if ( isset( $x509['extensions']['subjectAltName'] ) ) {