Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
f668ed25
Commit
f668ed25
authored
10 years ago
by
Lukas Reschke
Browse files
Options
Downloads
Plain Diff
Merge pull request #14874 from owncloud/correct-typehint
Can also be null
parents
d5e884d6
38fec9b0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/private/user/manager.php
+1
-1
1 addition, 1 deletion
lib/private/user/manager.php
lib/public/iusermanager.php
+1
-1
1 addition, 1 deletion
lib/public/iusermanager.php
with
2 additions
and
2 deletions
lib/private/user/manager.php
+
1
−
1
View file @
f668ed25
...
@@ -103,7 +103,7 @@ class Manager extends PublicEmitter implements IUserManager {
...
@@ -103,7 +103,7 @@ class Manager extends PublicEmitter implements IUserManager {
* get a user by user id
* get a user by user id
*
*
* @param string $uid
* @param string $uid
* @return \OC\User\User
* @return \OC\User\User
|null Either the user or null if the specified user does not exist
*/
*/
public
function
get
(
$uid
)
{
public
function
get
(
$uid
)
{
if
(
isset
(
$this
->
cachedUsers
[
$uid
]))
{
//check the cache first to prevent having to loop over the backends
if
(
isset
(
$this
->
cachedUsers
[
$uid
]))
{
//check the cache first to prevent having to loop over the backends
...
...
This diff is collapsed.
Click to expand it.
lib/public/iusermanager.php
+
1
−
1
View file @
f668ed25
...
@@ -53,7 +53,7 @@ interface IUserManager {
...
@@ -53,7 +53,7 @@ interface IUserManager {
* get a user by user id
* get a user by user id
*
*
* @param string $uid
* @param string $uid
* @return \OCP\IUser
* @return \OCP\IUser
|null Either the user or null if the specified user does not exist
*/
*/
public
function
get
(
$uid
);
public
function
get
(
$uid
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment