Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3942627
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
905 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/gadgets/motd-variations.php b/gadgets/motd-variations.php
index 104ed0c..f41caa1 100644
--- a/gadgets/motd-variations.php
+++ b/gadgets/motd-variations.php
@@ -1,23 +1,23 @@
<!-- Actions -->
<div id="action-icons">
<a href="" title="Refresh this page">
<i class="general foundicon-refresh"></i>
</a>
</div>
<!-- Content -->
<?php
$fortune = rtrim(`/usr/bin/fortune`);
echo " <h3>English text</h3>\n";
echo " <p>$fortune</p>\n\n";
$variants = [
'jive',
'valspeak',
];
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
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Dec 26, 17:07 (21 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2315284
Default Alt Text
(905 B)
Attached To
Mode
rTOOLS Nasqueron Tools
Attached
Detach File
Event Timeline
Log In to Comment