Skip to content

Commit

Permalink
Fix undefined variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 25, 2013
1 parent ae6e5bc commit cf0cc20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hermes/lib/Driver/Sql.php
Expand Up @@ -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'];
}
}

Expand Down

0 comments on commit cf0cc20

Please sign in to comment.