Page MenuHomePhorge

D25211.1734995977.diff
No OneTemporary

D25211.1734995977.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, 23:19 (19 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1027155
Default Alt Text
D25211.1734995977.diff (641 B)

Event Timeline