summaryrefslogtreecommitdiffstats
path: root/modules/plugins/OpenStrands.plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/plugins/OpenStrands.plugin.php')
-rw-r--r--modules/plugins/OpenStrands.plugin.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/plugins/OpenStrands.plugin.php b/modules/plugins/OpenStrands.plugin.php
index f57529b9..d63e9616 100644
--- a/modules/plugins/OpenStrands.plugin.php
+++ b/modules/plugins/OpenStrands.plugin.php
@@ -57,9 +57,8 @@ class AmpacheOpenStrands {
*/
function uninstall() {
- /* We need to remove the preivously added preferences */
- $sql = "DELETE FROM `preference` WHERE `name`='mystrands_pass' OR `name`='mystrands_user'";
- $db_results = Dba::query($sql);
+ Preference::delete('mystrands_pass');
+ Preference::delete('mystrands_user');
} // uninstall