If no versions registered for a module, don't show empty versions in template

This commit is contained in:
Sean Harvey 2013-02-12 13:43:32 +13:00
parent 389269936b
commit 9cf85b0c19

View File

@ -344,6 +344,8 @@ class DocumentationViewer extends Controller {
$currentVersion = $this->getVersion();
foreach($versions as $key => $version) {
if(!$version) continue;
$linkingMode = ($currentVersion == $version) ? 'current' : 'link';
$output->push(new ArrayData(array(