On line 165, just added a check to see if we have a help for it or not.
Might not be the best way to to it, but I got tired of seeing the error and having a funny looking help window.
<?php
if (!empty($help['command']))
{
foreach ($help['command'] as $key => $value)
{
// Only show help for the specific command, not all help for module!
$parts = explode(' ', $key);
if (strcasecmp($command, $parts[0]) == 0)
{
$key = str_replace('<', '<', $key);
$value = str_replace('<', '<', $value);
$window .= " ##highlight##<pre>$key##end## - $value<br>";
}
}
$window .= '<br>##highlight##NOTES:##end##<br>'.$help['notes'];
}
else
{
$window .= '##highlight##No Help Found##end##';
}
?>