Missing 4th parameter to insert_metar() and update_metar()
Brought to you by:
iridium
From: Phil P. <phi...@sw...> - 2004-02-07 06:08:33
|
I kept receiving warnings when inserting or updating METARS, complaining that both update_metar() and insert_metar() were missing their 4th parameter $time. I looked to where hey are called from , in data_retrieval.php and saw /* side effect */ // $metar_time = $date[0].$date[1].$date[2].$date[3].$date[4]."00"; and shortly after calls to both insert_metar() and update_metar() *but with only 3 parameters* as opposed to 4 as per the function definitions. So I uncommented the $metar_time assignment, and appended ,$metar_time as the 4th parameter to the insert/update metar calls. Much Better. Enjoy, Phil P |