Skip to content

Commit

Permalink
update to use data() with a default
Browse files Browse the repository at this point in the history
  • Loading branch information
valeryan committed Sep 1, 2015
1 parent b3f6fd2 commit 7a0305d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions applications/vanilla/views/categories/all.php
Expand Up @@ -11,8 +11,7 @@

$CatList = '';
$DoHeadings = c('Vanilla.Categories.DoHeadings');
$CategoryDepth = (isset($this->data('Category')->Depth)) ? $this->data('Category')->Depth : 0;
$MaxDisplayDepth = c('Vanilla.Categories.MaxDisplayDepth') + $CategoryDepth;
$MaxDisplayDepth = c('Vanilla.Categories.MaxDisplayDepth') + $this->data('Category.Depth', 0);
$ChildCategories = '';
$this->EventArguments['NumRows'] = count($this->data('Categories'));

Expand Down

0 comments on commit 7a0305d

Please sign in to comment.