From e86a5796586fe5db310c6ec857338dcc6caae923 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 17 Mar 2015 16:34:44 -0400 Subject: [PATCH] Use Horde_String and test for non-localized string too. --- whups/lib/Api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whups/lib/Api.php b/whups/lib/Api.php index faa3feeb5d0..fd794579b7a 100644 --- a/whups/lib/Api.php +++ b/whups/lib/Api.php @@ -611,7 +611,8 @@ public function listCostObjects($criteria) * hour estimates. */ $attributes = $whups_driver->getTicketAttributesWithNames($ticket['id']); foreach ($attributes as $k => $v) { - if (strtolower($k) == _("estimated time")) { + if (Horde_String::lower($k) == _("estimated time") || + Horde_String::lower($k) == 'estimated time') { if (!empty($v)) { $result[$ticket['id']]['estimate'] = (double) $v; }