summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-04 16:54:26 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-04 16:54:26 -0400
commitfcd843bc0c2ef3163d1ecc6b036e46726a61239a (patch)
treef2ce5d1117be95e2b24a16b59e83238a15ef910b /index.php
parent69480001986cd83852ee6351fbd5d68718eb829c (diff)
shows articles in accordion view
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/index.php b/index.php
index ca7e4f63f..1719f2f3c 100644
--- a/index.php
+++ b/index.php
@@ -24,7 +24,15 @@ $foldermapper = new OC_News_FolderMapper(OCP\USER::getUser());
$allfeeds = $foldermapper->root();
-$feedid = isset( $_GET['feedid'] ) ? $_GET['feedid'] : null;
+if ($allfeeds) {
+ $feedid = isset( $_GET['feedid'] ) ? $_GET['feedid'] : null;
+ if ($feedid == null) {
+
+ }
+}
+else {
+ $feedid = 0;
+}
$tmpl = new OCP\Template( 'news', 'main', 'user' );
$tmpl->assign('allfeeds', $allfeeds);