Page MenuHomeDevCentral

D3612.id.diff
No OneTemporary

D3612.id.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
Thu, Dec 19, 12:39 (18 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2306314
Default Alt Text
D3612.id.diff (458 B)

Event Timeline