From 74693ed2db27dbe732af1f44929a8976b0017050 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 3 Sep 2012 03:00:36 +0200 Subject: add padding to the bottom to be able to scroll even with one element --- ajax/usersettings.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ajax') 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(); + -- cgit v1.2.3