use pconfig::delete in ifttt addon
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 11 Nov 2017 06:21:47 +0000 (07:21 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 11 Nov 2017 06:21:47 +0000 (07:21 +0100)
ifttt/ifttt.php

index ddd517e..2828d50 100644 (file)
@@ -77,7 +77,7 @@ function ifttt_settings_post(&$a,&$b) {
 
         if(x($_POST,'ifttt-submit'))
                 if (isset($_POST['ifttt-rekey']))
-                        del_pconfig(local_user(), 'ifttt', 'key');
+                        PConfig::delete(local_user(), 'ifttt', 'key');
 }
 
 function ifttt_post(&$a) {