summaryrefslogtreecommitdiff
path: root/classes/User_username.php
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2010-03-08 15:31:16 +0800
committerCraig Andrews <candrews@integralblue.com>2010-03-08 13:15:49 -0500
commitef3991dbbe0acdba2dd7050b99f951ccfe5b8258 (patch)
tree98e969ef369b8dd7f277ee5a30acc894049db9ae /classes/User_username.php
parent3f696ff0ed4be5791edd38cf7b2a98a364b95676 (diff)
Fixed warning messages when auto-registering a new LDAP user.
On my test system (without memcache), while testing the LDAP authentication plugin, when I sign in for the first time, triggering auto-registration, I get these messages in the output page: Warning: ksort() expects parameter 1 to be array, null given in /home/jeff/Documents/code/statusnet/classes/Memcached_DataObject.php on line 219 Warning: Invalid argument supplied for foreach() in /home/jeff/Documents/code/statusnet/classes/Memcached_DataObject.php on line 224 Warning: assert() [function.assert]: Assertion failed in /home/jeff/Documents/code/statusnet/classes/Memcached_DataObject.php on line 241 (plus two "Cannot modify header information..." messages as a result of the above warnings) This change appears to fix this (although I can't really explain exactly why).
Diffstat (limited to 'classes/User_username.php')
-rw-r--r--classes/User_username.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/User_username.php b/classes/User_username.php
index 853fd5cb8..8d99cddd3 100644
--- a/classes/User_username.php
+++ b/classes/User_username.php
@@ -55,7 +55,7 @@ class User_username extends Memcached_DataObject
// now define the keys.
function keys() {
- return array('provider_name', 'username');
+ return array('provider_name' => 'K', 'username' => 'K');
}
}