Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13986497
D12095.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
748 B
Referenced Files
None
Subscribers
None
D12095.diff
View Options
diff --git a/src/applications/differential/customfield/DifferentialReviewersField.php b/src/applications/differential/customfield/DifferentialReviewersField.php
--- a/src/applications/differential/customfield/DifferentialReviewersField.php
+++ b/src/applications/differential/customfield/DifferentialReviewersField.php
@@ -187,7 +187,7 @@
$config_self_accept_key = 'differential.allow-self-accept';
$allow_self_accept = PhabricatorEnv::getEnvConfig($config_self_accept_key);
- foreach ($value as $phid) {
+ foreach ((array) $value as $phid) {
if (($phid == $author_phid) && !$allow_self_accept) {
throw new DifferentialFieldValidationException(
pht('The author of a revision can not be a reviewer.'));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 22, 3:25 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6740501
Default Alt Text
D12095.diff (748 B)
Attached To
Mode
D12095: Possible fix for null array
Attached
Detach File
Event Timeline
Log In to Comment