[web-news] cache-time-depends-on-age: Fixed warning

From: Date: Mon, 05 Oct 2026 15:40:24 +0000
Subject: [web-news] cache-time-depends-on-age: Fixed warning
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-34076@lists.php.net to get a copy of this message
Author: Derick Rethans (derickr)
Date: 2026-10-05T16:40:12+01:00

Commit: https://github.com/php/web-news/commit/cf85e412d0e6e8361e4e078fd7b327e455f96994
Raw diff: https://github.com/php/web-news/commit/cf85e412d0e6e8361e4e078fd7b327e455f96994.diff

Fixed warning

Changed paths:
  M  article.php


Diff:

diff --git a/article.php b/article.php
index ff5aec8..603d11e 100644
--- a/article.php
+++ b/article.php
@@ -230,7 +230,7 @@
     # quoted lines broken up, so we can put quoted blocks in levels of <div>
     # blocks instead of highlighting them per-line
 
-    if (!$insig && $mail['flowed']) {
+    if (!$insig && array_key_exists('flowed', $mail) &&
$mail['flowed']) {
         $flowed = false;
         $new_level = 0;
 


Thread (1 message)

  • Derick Rethans
« previous php.webmaster (#34076) next »