Page MenuHomePhorge

D25216.1737230052.diff
No OneTemporary

D25216.1737230052.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, Jan 18, 19:54 (2 d, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128193
Default Alt Text
D25216.1737230052.diff (824 B)

Event Timeline