Page MenuHomePhorge

D25211.1737203994.diff
No OneTemporary

D25211.1737203994.diff

diff --git a/src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php b/src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
--- a/src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
+++ b/src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
@@ -184,7 +184,7 @@
new PhabricatorSettingsAddEmailAction(),
1);
- if (!strlen($email)) {
+ if (!phutil_nonempty_string($email)) {
$e_email = pht('Required');
$errors[] = pht('Email is required.');
} else if (!PhabricatorUserEmail::isValidAddress($email)) {

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 18, 12:39 (3 d, 18 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114867
Default Alt Text
D25211.1737203994.diff (641 B)

Event Timeline