Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14008738
D10073.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
580 B
Referenced Files
None
Subscribers
None
D10073.diff
View Options
diff --git a/src/applications/pholio/view/PholioMockEmbedView.php b/src/applications/pholio/view/PholioMockEmbedView.php
--- a/src/applications/pholio/view/PholioMockEmbedView.php
+++ b/src/applications/pholio/view/PholioMockEmbedView.php
@@ -26,6 +26,9 @@
if (!empty($this->images)) {
$images_to_show = array_intersect_key(
$this->mock->getImages(), array_flip($this->images));
+ }
+
+ if ($images_to_show) {
foreach ($images_to_show as $image) {
$thumbfile = $image->getFile();
$thumbnail = $thumbfile->getThumb280x210URI();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 31, 5:58 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6738632
Default Alt Text
D10073.diff (580 B)
Attached To
Mode
D10073: Prevent crash caused by empty array when rendering Pholio mocks
Attached
Detach File
Event Timeline
Log In to Comment