Bugs item #1464487, was opened at 2006-04-04 16:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=377952&aid=1464487&group_id=23245
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PHP code
Group: phpweather-2.x
Status: Open
Priority: 5
Submitted By: bahrmann (bahrmann)
Assigned to: Nobody/Anonymous (nobody)
Summary: potential problem with php code
Initial Comment:
I was wondering why I was not getting RH values with
version 2.2.2 Upon further investigation it appears
that it is not calculated unless
taken from phpweather.php
if (!empty($decoded_metar['temperature']['temp_c']) &&
!empty($decoded_metar['temperature']['dew_c'])) {
now my problem with this appears that when either temp
or dew is 0 then by php 4 definition
PHP 4
As of PHP 4, The string value "0" is considered empty.
and therefore rh is not calculated...should !empty be
replaced with isset
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=377952&aid=1464487&group_id=23245
|