Controller bug and Distance class
Fixed a bug in the Controller that was throwing some notices when a module didn't return any data. Also finished up the calculateDistance() method in the Distance class. Seems I left it in somewhat of a bug filled incomplete state last week.
This commit is contained in:
parent
63fd4db19a
commit
340b336a49
3 changed files with 10 additions and 12 deletions
|
@ -385,7 +385,7 @@ class Controller extends Object
|
|||
{
|
||||
$module_return = $module->$default_method();
|
||||
|
||||
if ($module_return === null)
|
||||
if (!is_array($module_return))
|
||||
{
|
||||
$module_return = $module->return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue