Skip to content
Snippets Groups Projects
Commit 1656cc2e authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

Merge pull request #3565 from owncloud/fix_ldap_sqlite_n_js

Fix ldap sqlite n js
parents eafb2410 2ff9677c
Branches
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ var LdapConfiguration = {
//deal with Checkboxes
if($(elementID).is('input[type=checkbox]')) {
if(configvalue === 1) {
if(parseInt(configvalue) === 1) {
$(elementID).attr('checked', 'checked');
} else {
$(elementID).removeAttr('checked');
......
......@@ -118,7 +118,13 @@ class Helper {
return false;
}
if(strpos(\OCP\Config::getSystemValue('dbtype'), 'sqlite') !== false) {
$query = \OCP\DB::prepare('DELETE FROM '.$table);
} else {
$query = \OCP\DB::prepare('TRUNCATE '.$table);
}
$res = $query->execute();
if(\OCP\DB::isError($res)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment