LDAP: fix database cleanup in update script

remotes/origin/stable5
Arthur Schiwon 12 years ago
parent af2acadc66
commit 1c94ec71ef
  1. 5
      apps/user_ldap/appinfo/update.php
  2. 2
      apps/user_ldap/appinfo/version

@ -89,5 +89,6 @@ if(!isset($connector)) {
$connector->getConfiguration();
$connector->saveConfiguration();
// we don't save it anymore, was a well-meant bad idea
\OC_Preferences::deleteKey('%', 'user_ldap' , 'homedir');
// we don't save it anymore, was a well-meant bad idea. Clean up database.
$query = OC_DB::prepare('DELETE FROM `*PREFIX*preferences` WHERE `appid` = ? AND `configkey` = ?');
$query->execute(array('user_ldap' , 'homedir'));

Loading…
Cancel
Save