Page MenuHomePhorge

D25437.1726903496.diff
No OneTemporary

D25437.1726903496.diff

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

Mime Type
text/plain
Expires
Sat, Sep 21, 07:24 (22 h, 14 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
893720
Default Alt Text
D25437.1726903496.diff (861 B)

Event Timeline