summaryrefslogtreecommitdiff
path: root/moc-commands.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-05-16 13:58:28 +0200
committerErich Eckner <git@eckner.net>2023-05-16 14:35:19 +0200
commit05f1fcf84321d766dce8e1d9490a01218a128094 (patch)
tree5aa00d873570c378aa74ff2aa3cfb3ff5e01bc6d /moc-commands.php
parentf78632169360cb93220799fe9368dc0218be34ce (diff)
downloadmocp-web-05f1fcf84321d766dce8e1d9490a01218a128094.tar.xz
fix function syntax and scoping
Diffstat (limited to 'moc-commands.php')
-rw-r--r--moc-commands.php3
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();