diff options
author | Erich Eckner <git@eckner.net> | 2023-05-16 13:58:28 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-05-16 14:35:19 +0200 |
commit | 05f1fcf84321d766dce8e1d9490a01218a128094 (patch) | |
tree | 5aa00d873570c378aa74ff2aa3cfb3ff5e01bc6d /moc-commands.php | |
parent | f78632169360cb93220799fe9368dc0218be34ce (diff) | |
download | mocp-web-05f1fcf84321d766dce8e1d9490a01218a128094.tar.xz |
fix function syntax and scoping
Diffstat (limited to 'moc-commands.php')
-rw-r--r-- | moc-commands.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 ' <a href="?what=' . $key; attach_key(); |