Page MenuHomeDevCentral

D3612.id9339.diff
No OneTemporary

D3612.id9339.diff

diff --git a/gadgets/motd-variations.php b/gadgets/motd-variations.php
--- a/gadgets/motd-variations.php
+++ b/gadgets/motd-variations.php
@@ -19,5 +19,5 @@
foreach ($variants as $variant) {
echo " <h3>English variant — $variant</h3>\n";
$text = escapeshellarg($fortune);
- echo " <p>", rtrim(`echo $text | $variant`), "</p>\n\n";
+ echo " <p>", rtrim(`echo $text | $variant` ?? ""), "</p>\n\n";
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 20:35 (13 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2306314
Default Alt Text
D3612.id9339.diff (458 B)

Event Timeline