Skip to content

Commit cac0233

Browse files
committed
Check if 'desc' key exists
So it doesn't throws an notice if missing.
1 parent 7a48caa commit cac0233

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Phakefile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function gen_cmd_pages( $cmd, $parent = array() ) {
115115

116116
$default = json_encode( $details['default'] );
117117

118-
$description = $details['desc'];
118+
$description = ( isset( $details['desc'] ) ) ? $details['desc'] : '';
119119

120120
$out .= render( 'config.mustache', compact( 'config', 'flag', 'default', 'description' ) );
121121
}

0 commit comments

Comments
 (0)