Skip to content

Commit acebbc6

Browse files
author
Miika Arponen
committed
Altered code to remove unnecessary notices
1 parent 6aced79 commit acebbc6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

helpers/menu.php

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ public function output() {
3232
$parent = 0;
3333
}
3434

35+
if ( isset( $this->params->depth ) ) {
36+
$depth = $this->params->depth;
37+
} else {
38+
$depth = PHP_INT_MAX;
39+
}
40+
3541
if ( isset( $this->params->override ) ) {
3642
$override = $this->params->override;
3743
} else {

0 commit comments

Comments
 (0)