summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/helper.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-06-20 14:47:12 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-06-24 16:29:58 +0200
commit88fc410c1936510b84497b677248cd20db9fd87f (patch)
treeecfd4681d78460612efe948fab7e3c9c910ae8bd /apps/user_ldap/lib/helper.php
parent643c8d308847197550480507120b5f0f34f8fc80 (diff)
downloadnextcloud-server-88fc410c1936510b84497b677248cd20db9fd87f.tar.gz
nextcloud-server-88fc410c1936510b84497b677248cd20db9fd87f.zip
fix numRows usage in user_ldap
Diffstat (limited to 'apps/user_ldap/lib/helper.php')
-rw-r--r--apps/user_ldap/lib/helper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/helper.php b/apps/user_ldap/lib/helper.php
index 10ed40ebd6a..f65f466789f 100644
--- a/apps/user_ldap/lib/helper.php
+++ b/apps/user_ldap/lib/helper.php
@@ -90,13 +90,13 @@ class Helper {
AND `appid` = \'user_ldap\'
AND `configkey` NOT IN (\'enabled\', \'installed_version\', \'types\', \'bgjUpdateGroupsLastRun\')
');
- $res = $query->execute(array($prefix.'%'));
+ $delRows = $query->execute(array($prefix.'%'));
- if(\OCP\DB::isError($res)) {
+ if(\OCP\DB::isError($delRows)) {
return false;
}
- if($res->numRows() === 0) {
+ if($delRows === 0) {
return false;
}