X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/c20b44263a89d8bf1a78bfa632daaae3cb4f1da2..91d3a96bb7741ba92d2d3d7a7dc7d18e0d79688f:/templates/sidebar.tpl.php?ds=sidebyside diff --git a/templates/sidebar.tpl.php b/templates/sidebar.tpl.php index 5f399b5..1aed4b3 100644 --- a/templates/sidebar.tpl.php +++ b/templates/sidebar.tpl.php @@ -5,7 +5,11 @@ $this->includeTemplate('sidebar.block.'. $sidebar_blocks[$i]); } - $size = count($rsschannels); + if (isset($rsschannels)) { + $size = count($rsschannels); + } else { + $size = 0; + } for ($i = 0; $i < $size; $i++) { echo '
'; }