diff --git a/nag/lib/Api.php b/nag/lib/Api.php index c370058c00c..ccdc83c292c 100644 --- a/nag/lib/Api.php +++ b/nag/lib/Api.php @@ -418,7 +418,7 @@ public function browse($path = '', $properties = array()) $storage = $GLOBALS['injector']->getInstance('Nag_Factory_Driver')->create($parts[1]); $storage->retrieve(); try { - $storage->get($parts[2]); + $task = $storage->get($parts[2]); } catch (Nag_Exception $e) { throw new Nag_Exception($e->getMessage(), 500); }