Skip to content

Commit

Permalink
Make this PHP 5.3 compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 15, 2016
1 parent 21768d7 commit 207bac0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/Date/lib/Horde/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ public static function getTimezoneAlias($timezone)
}
$lower = Horde_String::lower($timezone);
if (isset(self::$_timezoneAbbreviations[$lower])) {
$timezone = reset(self::$_timezoneAbbreviations[$lower])['timezone_id'];
$timezone = reset(self::$_timezoneAbbreviations[$lower]);
$timezone = $timezone['timezone_id'];
}
return $timezone;
}
Expand Down

0 comments on commit 207bac0

Please sign in to comment.