');
//feed the DB
- $res = $insert->execute(array($dn, $ocname, $this->getUUID($dn), $dn, $ocname));
+ $insRows = $insert->execute(array($dn, $ocname, $this->getUUID($dn), $dn, $ocname));
- if(\OCP\DB::isError($res)) {
+ if(\OCP\DB::isError($insRows)) {
return false;
}
- $insRows = $res->numRows();
-
if($insRows === 0) {
return false;
}
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;
}