From f0f77aafbf93665ddd878477e136fa9c2e88e2bd Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Thu, 12 Aug 2010 17:10:05 +0200
Subject: [PATCH] fix problem when creating users with a non-empty userid cache

---
 inc/lib_user.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/inc/lib_user.php b/inc/lib_user.php
index 73faf77a16..593cd979ef 100644
--- a/inc/lib_user.php
+++ b/inc/lib_user.php
@@ -134,7 +134,7 @@ class OC_USER {
 	 * @param  boolean  $noCache   If false the cache is used to find the ID
 	 */
 	public static function getUserId($username, $noCache=false) {
-		return self::$_backend->getUserId($username, $noCache=false);
+		return self::$_backend->getUserId($username, $noCache);
 	}
 
 	/**
@@ -144,7 +144,7 @@ class OC_USER {
 	 * @param  boolean  $noCache    If false the cache is used to find the ID
 	 */
 	public static function getGroupId($groupName, $noCache=false) {
-		return self::$_backend->getGroupId($groupName, $noCache=false);
+		return self::$_backend->getGroupId($groupName, $noCache);
 	}
 
 	/**
@@ -154,7 +154,7 @@ class OC_USER {
 	 * @param  boolean $noCache  If false the cache is used to find the name of the group
 	 */
 	public static function getGroupName($groupId, $noCache=false) {
-		return self::$_backend->getGroupName($groupId, $noCache=false);
+		return self::$_backend->getGroupName($groupId, $noCache);
 	}
 
 	/**
-- 
GitLab