<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
throw new RuntimeException("$cat.$key is an array and can't be set using this command.");
}
+ if ($this->config->get($cat, $key) === $value) {
+ throw new RuntimeException("$cat.$key already set to $value.");
+ }
+
$result = $this->config->set($cat, $key, $value);
if ($result) {
$this->out("{$cat}.{$key} <= " .