Skip to content

Commit

Permalink
Use Horde_String and test for non-localized string too.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 17, 2015
1 parent b52e9a5 commit e86a579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion whups/lib/Api.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit e86a579

Please sign in to comment.