Refix bug #49558 as per bug #49676

This commit is contained in:
Rasmus Lerdorf 2009-09-26 00:53:59 +00:00
parent 8621a06eed
commit 5afa8a23bb

View File

@ -3927,7 +3927,7 @@ static void php_do_date_sunrise_sunset(INTERNAL_FUNCTION_PARAMETERS, int calc_su
} }
timelib_unixtime2local(t, time); timelib_unixtime2local(t, time);
rs = timelib_astro_rise_set_altitude(t, longitude, latitude, altitude, calc_sunset?0:1, &h_rise, &h_set, &rise, &set, &transit); rs = timelib_astro_rise_set_altitude(t, longitude, latitude, altitude, 1, &h_rise, &h_set, &rise, &set, &transit);
timelib_time_dtor(t); timelib_time_dtor(t);
if (rs != 0) { if (rs != 0) {