By Date: <-- -->
By Thread: <-- -->

[Bug 5416] New: Weather format apparently changed - had to adjust xml -> array indeces, patch attached.



Please do not reply directly to this message. All additional comments should
be made in the comments box of this bug report.

http://bugs.xaraya.com/show_bug.cgi?id=5416

           Summary: Weather format apparently changed - had to adjust xml ->
                    array indeces, patch attached.
           Product: App - Modules
           Version: Weekly Tarball
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P3 - Standard
         Component: Weather
        AssignedTo: roger (at) xaraya.com
        ReportedBy: pete.smith (at) mathworks.com


Xaraya Version:    1.0.1
PHP version:       4.4.0
WebServer:         

Came in yesterday and weather which hard worked fine, stopped displaying 
data.  in xoapWeather.php line 330

I had to increment the array up one, from 0,1,2 -> 1,2,3

        $head =& $tree['children'][1];
        $loc  =& $tree['children'][2];
        $cc   =& $tree['children'][3];
and line 235

        $head =& $tree['children'][1];
        $loc  =& $tree['children'][2];
        $days =& $tree['children'][3]['children'];


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




I am attaching the patched file that works fine here, I bet weather.com 
updated their xml file or something.

-- 
Configure bugmail: http://bugs.xaraya.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
Xaraya_bugs mailing list
Xaraya_bugs (at) xaraya.com
http://xaraya.com/mailman/listinfo/xaraya_bugs