Mercurial > hg > rc2
comparison program/lib/Roundcube/rcube_text2html.php @ 27:c32b53434b47
more compensation for deprecated empty cases
| author | Charlie Root |
|---|---|
| date | Sun, 18 Jan 2026 14:20:29 -0500 |
| parents | 303b85d5b561 |
| children |
comparison
equal
deleted
inserted
replaced
| 25:bea5a38be938 | 27:c32b53434b47 |
|---|---|
| 174 $last = null; | 174 $last = null; |
| 175 | 175 |
| 176 // wrap quoted lines with <blockquote> | 176 // wrap quoted lines with <blockquote> |
| 177 for ($n = 0, $cnt = count($text); $n < $cnt; $n++) { | 177 for ($n = 0, $cnt = count($text); $n < $cnt; $n++) { |
| 178 $flowed = false; | 178 $flowed = false; |
| 179 if ($this->config['flowed'] && ord($text[$n][0]) == $flowed_char) { | 179 if ($this->config['flowed'] && ord($text[$n][0]??null) == $flowed_char) { |
| 180 $flowed = true; | 180 $flowed = true; |
| 181 $text[$n] = substr($text[$n], 1); | 181 $text[$n] = substr($text[$n], 1); |
| 182 } | 182 } |
| 183 | 183 |
| 184 if ($text[$n] && $text[$n][0] == '>' && preg_match('/^(>+ {0,1})+/', $text[$n], $regs)) { | 184 if ($text[$n] && $text[$n][0] == '>' && preg_match('/^(>+ {0,1})+/', $text[$n], $regs)) { |
