1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Avoiding problem with default-values

This commit is contained in:
Tim Düsterhus 2011-12-24 16:59:29 +01:00
parent 7b2eb83640
commit 90f1213ef7

View File

@ -71,6 +71,8 @@ public static function readUserData($field) {
break;
}
static::writeUserData(array($field => $data[WCF::getUser()->userID]));
return $data[WCF::getUser()->userID];
}
if (isset(static::$serialize[$field])) return unserialize($data[WCF::getUser()->userID]);