Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2694444
D25437.1734784536.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
861 B
Referenced Files
None
Subscribers
None
D25437.1734784536.diff
View Options
diff --git a/src/applications/macro/engine/PhabricatorMemeEngine.php b/src/applications/macro/engine/PhabricatorMemeEngine.php
--- a/src/applications/macro/engine/PhabricatorMemeEngine.php
+++ b/src/applications/macro/engine/PhabricatorMemeEngine.php
@@ -273,7 +273,7 @@
$size = $metrics['size'];
$above = $this->getAboveText();
- if (strlen($above)) {
+ if ($above !== null && phutil_nonempty_string(trim($above))) {
$x = (int)floor(($dx - $metrics['text']['above']['width']) / 2);
$y = $metrics['text']['above']['height'] + 12;
@@ -281,7 +281,7 @@
}
$below = $this->getBelowText();
- if (strlen($below)) {
+ if ($below !== null && phutil_nonempty_string(trim($below))) {
$x = (int)floor(($dx - $metrics['text']['below']['width']) / 2);
$y = $dy - 12 - $metrics['text']['below']['descend'];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 12:35 (17 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1024621
Default Alt Text
D25437.1734784536.diff (861 B)
Attached To
Mode
D25437: Fix "Undefined index" exception setting Meme text
Attached
Detach File
Event Timeline
Log In to Comment