summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-09-03 03:00:36 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-09-03 03:00:36 +0200
commit74693ed2db27dbe732af1f44929a8976b0017050 (patch)
treed2be725ba95bb04327a9b50642e8db962546a84d /index.php
parent8f574db911ebd7748f2462f423e92b275ce99b56 (diff)
add padding to the bottom to be able to scroll even with one element
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index b7e688ba2..60163153c 100644
--- a/index.php
+++ b/index.php
@@ -36,6 +36,9 @@ $foldermapper = new OCA\News\FolderMapper($userid);
$allfeeds = $foldermapper->childrenOfWithFeeds(0); //$foldermapper->populate($folder);
$folderforest = $foldermapper->childrenOf(0); //retrieve all the folders
+$feedid = 0;
+$feedtype = 0;
+
if ($allfeeds) {
$feedid = isset( $_GET['feedid'] ) ? $_GET['feedid'] : null;
if ($feedid == null) {
@@ -53,9 +56,6 @@ if ($allfeeds) {
}
}
}
-} else {
- $feedid = 0;
- $feedtype = 0;
}
$tmpl = new OCP\Template( 'news', 'main', 'user' );