summaryrefslogtreecommitdiffstats
path: root/modules/plugins/Lastfm.plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/plugins/Lastfm.plugin.php')
-rw-r--r--modules/plugins/Lastfm.plugin.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/plugins/Lastfm.plugin.php b/modules/plugins/Lastfm.plugin.php
index 098e01e8..0d9c4b18 100644
--- a/modules/plugins/Lastfm.plugin.php
+++ b/modules/plugins/Lastfm.plugin.php
@@ -70,10 +70,12 @@ class AmpacheLastfm {
*/
public function uninstall() {
- /* We need to remove the preivously added preferences */
- $sql = "DELETE FROM `preference` WHERE `name`='lastfm_pass' OR `name`='lastfm_user' " .
- "OR `name`='lastfm_url' OR `name`='lastfm_host' OR `name`='lastfm_port' OR `name`='lastfm_challenge'";
- $db_results = Dba::query($sql);
+ Preference::delete('lastfm_pass');
+ Preference::delete('lastfm_user');
+ Preference::delete('lastfm_url');
+ Preference::delete('lastfm_host');
+ Preference::delete('lastfm_port');
+ Preference::delete('lastfm_challenge');
} // uninstall