Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2918920
D25281.1737531821.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
556 B
Referenced Files
None
Subscribers
None
D25281.1737531821.diff
View Options
diff --git a/src/applications/pholio/controller/PholioInlineController.php b/src/applications/pholio/controller/PholioInlineController.php
--- a/src/applications/pholio/controller/PholioInlineController.php
+++ b/src/applications/pholio/controller/PholioInlineController.php
@@ -112,6 +112,8 @@
} else if ($inline->getID()) {
$inline->delete();
$dictionary = array();
+ } else {
+ throw new Exception(pht('Comment cannot be empty.'));
}
return id(new AphrontAjaxResponse())->setContent($dictionary);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 07:43 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1143095
Default Alt Text
D25281.1737531821.diff (556 B)
Attached To
Mode
D25281: Fix Pholio RuntimeException: Undefined variable $dictionary (when adding an empty Inline Comment)
Attached
Detach File
Event Timeline
Log In to Comment