From cf0cc2018ccf8873f4c45e2f2ddd508642b0fb30 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 25 Oct 2013 15:51:04 +0200 Subject: [PATCH] Fix undefined variable. --- hermes/lib/Driver/Sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermes/lib/Driver/Sql.php b/hermes/lib/Driver/Sql.php index 6c411559a81..93589dfe2dc 100644 --- a/hermes/lib/Driver/Sql.php +++ b/hermes/lib/Driver/Sql.php @@ -300,10 +300,10 @@ public function getHours(array $filters = array(), array $fields = array()) } else { try { $costobject = Hermes::getCostObjectByID($hour['costobject']); + $hour['_costobject_name'] = $costobject['name']; } catch (Horde_Exception $e) { $hour['_costobject_name'] = sprintf(_("Error: %s"), $e->getMessage()); } - $hour['_costobject_name'] = $costobject['name']; } }