Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/v3.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwsmith committed Dec 7, 2015
2 parents ebbcb56 + 6b4ad89 commit 30fd1bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion inc/css/responsive-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ ul#others {

#footer {
background-color: #444;
padding: 10px;
padding: 10px 10px 20px 10px;
color: #DDD;
margin-top: 20px;
}
Expand Down
10 changes: 7 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
$temperature = $ob['temp_f'] . "°";

// Feels like (heat index/wind chill)
$feels_like_temp = $ob['feelslike_f'] . "°";
if(!empty($ob['heat_index_f'])) {
$feels_like_temp = $ob['feelslike_f'] . "°";
// v3.0.3: Set a default feels like type for sanity's sake
$feels_like_type = "";
// v3.0.3: WU API does not empty out the heat index/wind chill values,
// just uses NA when they don't apply...so check against that instead
if($ob['heat_index_f'] != "NA") {
$feels_like_type = 'hi';
}
elseif(!empty($ob['windchill_f'])) {
elseif($ob['windchill_f'] != "NA") {
$feels_like_type = 'wc';
}
$display_feels_like = $feels_like_temp != $temperature;
Expand Down

0 comments on commit 30fd1bc

Please sign in to comment.