From cf9e29bbbd02f5460670ea74f6af00fb2bf44be1 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 14 Dec 2016 22:02:02 +0100 Subject: [PATCH] Fix redis method names in UserStorageHandler --- .../lib/system/user/storage/UserStorageHandler.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php b/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php index 34e3fd5072..571e642415 100644 --- a/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php @@ -95,7 +95,7 @@ class UserStorageHandler extends SingletonFactory { if ($this->redis) { foreach ($userIDs as $userID) { - $data[$userID] = $this->redis->hget($this->getRedisFieldName($field), $userID); + $data[$userID] = $this->redis->hGet($this->getRedisFieldName($field), $userID); if ($data[$userID] === false) $data[$userID] = null; } @@ -136,7 +136,7 @@ class UserStorageHandler extends SingletonFactory { } if ($this->redis) { - $result = $this->redis->hget($this->getRedisFieldName($field), $userID); + $result = $this->redis->hGet($this->getRedisFieldName($field), $userID); if ($result === false) return null; return $result; } @@ -162,7 +162,7 @@ class UserStorageHandler extends SingletonFactory { */ public function update($userID, $field, $fieldValue) { if ($this->redis) { - $this->redis->hset($this->getRedisFieldName($field), $userID, $fieldValue); + $this->redis->hSet($this->getRedisFieldName($field), $userID, $fieldValue); $this->redis->expire($this->getRedisFieldName($field), 86400); return; } @@ -184,7 +184,7 @@ class UserStorageHandler extends SingletonFactory { public function reset(array $userIDs, $field) { if ($this->redis) { foreach ($userIDs as $userID) { - $this->redis->hdel($this->getRedisFieldName($field), $userID); + $this->redis->hDel($this->getRedisFieldName($field), $userID); } return; } -- 2.20.1