Page MenuHomePhorge

D25211.1734979310.diff
No OneTemporary

D25211.1734979310.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
Mon, Dec 23, 18:41 (14 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1027155
Default Alt Text
D25211.1734979310.diff (641 B)

Event Timeline