Skip to content

Commit

Permalink
Fix for bug #49558 for 5.2 and HEAD as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlerdorf committed Sep 15, 2009
1 parent 911228f commit 4c92f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/date/php_date.c
Expand Up @@ -2456,7 +2456,7 @@ static void php_do_date_sunrise_sunset(INTERNAL_FUNCTION_PARAMETERS, int calc_su
}

timelib_unixtime2local(t, time);
rs = timelib_astro_rise_set_altitude(t, longitude, latitude, altitude, altitude > -1 ? 1 : 0, &h_rise, &h_set, &rise, &set, &transit);
rs = timelib_astro_rise_set_altitude(t, longitude, latitude, altitude, calc_sunset?0:1, &h_rise, &h_set, &rise, &set, &transit);
timelib_time_dtor(t);

if (rs != 0) {
Expand Down

0 comments on commit 4c92f98

Please sign in to comment.