summaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-11-14 21:45:03 +0100
committerBart Visscher <bartv@thisnet.nl>2012-11-14 21:52:28 +0100
commit343e9d86213edb832455338816527e9cbab0d6e0 (patch)
tree51a6ba9cd5dd7197463624caab206aa8f82635cf /lib/user.php
parent59627367ae4ba41c84f14e55ef4fe57c2924b7ab (diff)
downloadnextcloud-server-343e9d86213edb832455338816527e9cbab0d6e0.tar.gz
nextcloud-server-343e9d86213edb832455338816527e9cbab0d6e0.zip
Better check and handing of user deletion
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.php b/lib/user.php
index 872fff9b2d9..a60ebbe4423 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -216,7 +216,7 @@ class OC_User {
// Emit and exit
OC_Hook::emit( "OC_User", "post_deleteUser", array( "uid" => $uid ));
- return true;
+ return !self::userExists($uid);
}
else{
return false;