Hoo man has uploaded a new change for review.
https://gerrit.wikimedia.org/r/204637
Change subject: Fix CentralAuthUser::loadAttached if no accounts are attached
......................................................................
Fix CentralAuthUser::loadAttached if no accounts are attached
Don't set $this->mAttachedArray to array( '' ) in that case...
php > var_dump( explode( "\n", $foo ) );
array(1) {
[0] =>
string(0) ""
}
Bug: T96267
Change-Id: Ia541f514cd5a07e98a8f2a38d5584a0b95cf8634
---
M includes/CentralAuthUser.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth
refs/changes/37/204637/1
diff --git a/includes/CentralAuthUser.php b/includes/CentralAuthUser.php
index e005efd..325d909 100644
--- a/includes/CentralAuthUser.php
+++ b/includes/CentralAuthUser.php
@@ -1945,7 +1945,7 @@
return;
}
- if ( isset( $this->mAttachedList ) ) {
+ if ( isset( $this->mAttachedList ) && $this->mAttachedList !==
'' ) {
// We have a list already, probably from the cache.
$this->mAttachedArray = explode( "\n",
$this->mAttachedList );
--
To view, visit https://gerrit.wikimedia.org/r/204637
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia541f514cd5a07e98a8f2a38d5584a0b95cf8634
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits