diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-03 03:00:36 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-03 03:00:36 +0200 |
commit | 74693ed2db27dbe732af1f44929a8976b0017050 (patch) | |
tree | d2be725ba95bb04327a9b50642e8db962546a84d /ajax | |
parent | 8f574db911ebd7748f2462f423e92b275ce99b56 (diff) |
add padding to the bottom to be able to scroll even with one element
Diffstat (limited to 'ajax')
-rw-r--r-- | ajax/usersettings.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ajax/usersettings.php b/ajax/usersettings.php index 27fc11cb1..c11bb346e 100644 --- a/ajax/usersettings.php +++ b/ajax/usersettings.php @@ -16,7 +16,13 @@ OCP\JSON::checkAppEnabled('news'); OCP\JSON::callCheck(); if(isset($_POST['showAll'])){ - OCP\Config::setUserValue(OCP\USER::getUser(), 'news', 'showAll', $_POST['showAll']); + if($_POST['showAll'] === 'false'){ + $showAll = false; + } else { + $showAll = true; + } + OCP\Config::setUserValue(OCP\USER::getUser(), 'news', 'showAll', $showAll); } -OCP\JSON::success();
\ No newline at end of file +OCP\JSON::success(); + |