diff --git a/db/configmapper.php b/db/configmapper.php
index fea5d47..5ea9987 100644
--- a/db/configmapper.php
+++ b/db/configmapper.php
@@ -34,11 +34,11 @@ class ConfigMapper extends Mapper {
$this->crypto = $crypto;
}
- public function set($backend, $key, $value){
+ public function set($key, $value){
$value = $this->crypto->encrypt($value);
if($this->hasKey($key, $value)){
- $sql = "UPDATE `*PREFIX*ocsms_config` SET `value` = ? WHERE `user` = ? AND `keyi` = ?";
- $this->execute($sql, array($value, $this->user, $backend, $key));
+ $sql = "UPDATE `*PREFIX*ocsms_config` SET `value` = ? WHERE `user` = ? AND `key` = ?";
+ $this->execute($sql, array($value, $this->user, $key));
} else {
$sql = "INSERT INTO `*PREFIX*ocsms_config` (`user`,`key`,`value`) VALUES (?,?,?);";
$this->execute($sql, array($this->user, $key, $value));
diff --git a/templates/main.php b/templates/main.php
index 4498055..f562036 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -23,7 +23,7 @@ use \OCA\OcSms\Lib\CountryCodes;
-
+