Skip to content

Commit

Permalink
remove deprecated string index accessor syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 1, 2020
1 parent fc1d21c commit f33377e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Horde/Service/Weather.php
Expand Up @@ -350,9 +350,8 @@ public static function convertTemperature($temperature, $from, $to)
if ($temperature == 'N/A') {
return $temperature;
}

$from = strtolower($from[0]);
$to = strtolower($to[0]);
$from = strtolower(substr($from, 0, 1));
$to = strtolower(substr($to, 0, 1));

$result = array(
'f' => array(
Expand Down

0 comments on commit f33377e

Please sign in to comment.