From 05f1fcf84321d766dce8e1d9490a01218a128094 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 16 May 2023 13:58:28 +0200 Subject: fix function syntax and scoping --- moc-commands.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'moc-commands.php') diff --git a/moc-commands.php b/moc-commands.php index ec962d6..12fa400 100644 --- a/moc-commands.php +++ b/moc-commands.php @@ -61,7 +61,8 @@ function list_info($max_line_len = 0) { return $list . " (" . $cnt . ")"; } -print_known_commands() { +function print_known_commands() { + global $commands; foreach ($commands as $key => $command) { print '