Skip to content

Commit 85f39ed

Browse files
committed
Bugfix for error log
1 parent f2c8b85 commit 85f39ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ajax/setval.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
OCP\User::checkAdminUser();
44
\OCP\App::checkAppEnabled('shorten');
55

6-
if ($_POST['host']) {
6+
if (isset($_POST['host'])) {
77
OCP\Config::setAppValue('shorten', 'host', $_POST['host']);
88
echo "host:".$_POST['host'];
99
}
10-
if ($_POST['api']) {
10+
if (isset($_POST['api'])) {
1111
OCP\Config::setAppValue('shorten', 'api', $_POST['api']);
1212
echo "api:".$_POST['api'];
1313
}
14-
if ($_POST['type']) {
14+
if (isset($_POST['type'])) {
1515
OCP\Config::setAppValue('shorten', 'type', $_POST['type']);
1616
echo "type:".$_POST['type'];
1717
}

0 commit comments

Comments
 (0)