Page MenuHomePhorge

D25216.1734779341.diff
No OneTemporary

D25216.1734779341.diff

diff --git a/src/applications/auth/controller/config/PhabricatorAuthEditController.php b/src/applications/auth/controller/config/PhabricatorAuthEditController.php
--- a/src/applications/auth/controller/config/PhabricatorAuthEditController.php
+++ b/src/applications/auth/controller/config/PhabricatorAuthEditController.php
@@ -99,10 +99,10 @@
if (!$errors) {
if ($is_new) {
- if (!strlen($config->getProviderType())) {
+ if (!phutil_nonempty_string($config->getProviderType())) {
$config->setProviderType($provider->getProviderType());
}
- if (!strlen($config->getProviderDomain())) {
+ if (!phutil_nonempty_string($config->getProviderDomain())) {
$config->setProviderDomain($provider->getProviderDomain());
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 11:09 (17 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1022417
Default Alt Text
D25216.1734779341.diff (824 B)

Event Timeline