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:
Josh Sherman 2012-12-18 13:24:19 -05:00
parent 63fd4db19a
commit 340b336a49
3 changed files with 10 additions and 12 deletions

View file

@ -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;
}