diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/common.php | 3 | ||||
-rw-r--r-- | inc/template.php | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/inc/common.php b/inc/common.php index b6048825b..a1c4580a6 100644 --- a/inc/common.php +++ b/inc/common.php @@ -268,9 +268,6 @@ function breadcrumbs(){ global $ACT; global $conf; - // Prevent infinite loop later in this function - if (!is_numeric($conf['breadcrumbs']) || $conf['breadcrumbs'] <= 0) return array(); - //first visit? $crumbs = isset($_SESSION[DOKU_COOKIE]['bc']) ? $_SESSION[DOKU_COOKIE]['bc'] : array(); //we only save on show and existing wiki documents diff --git a/inc/template.php b/inc/template.php index d171ab075..53ae9abce 100644 --- a/inc/template.php +++ b/inc/template.php @@ -690,7 +690,7 @@ function tpl_breadcrumbs($sep='»'){ global $conf; //check if enabled - if(!is_numeric($conf['breadcrumbs']) || $conf['breadcrumbs'] <= 0) return false; + if(!$conf['breadcrumbs']) return false; $crumbs = breadcrumbs(); //setup crumb trace |