We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2c8b85 commit 85f39edCopy full SHA for 85f39ed
ajax/setval.php
@@ -3,15 +3,15 @@
3
OCP\User::checkAdminUser();
4
\OCP\App::checkAppEnabled('shorten');
5
6
-if ($_POST['host']) {
+if (isset($_POST['host'])) {
7
OCP\Config::setAppValue('shorten', 'host', $_POST['host']);
8
echo "host:".$_POST['host'];
9
}
10
-if ($_POST['api']) {
+if (isset($_POST['api'])) {
11
OCP\Config::setAppValue('shorten', 'api', $_POST['api']);
12
echo "api:".$_POST['api'];
13
14
-if ($_POST['type']) {
+if (isset($_POST['type'])) {
15
OCP\Config::setAppValue('shorten', 'type', $_POST['type']);
16
echo "type:".$_POST['type'];
17
0 commit comments