From 6e9446abd76cb591700ddd236992619f27ad0441 2019-01-22 16:17:52 From: chain Date: 2019-01-22 16:17:52 Subject: [PATCH] fix lost ipdate when editing posts using custom time format --- diff --git a/inc/plugins/inplaytracker.php b/inc/plugins/inplaytracker.php index b04d1943d3f2e7250814bd20393ebcceaa1efba9..46601a22916150acd2cb99cb1a053dfd041c9197 100644 --- a/inc/plugins/inplaytracker.php +++ b/inc/plugins/inplaytracker.php @@ -895,9 +895,9 @@ function inplaytracker_editpost() $year = date("Y", $ipdate); } else { + list($active_day, $active_month, $year) = explode(" ", $ipdate); for($i = 1 ; $i < 32 ; $i++) { $checked_day = ""; - $active_day = $mybb->get_input('day'); if($active_day == $i) { $checked_day = "selected=\"selected\""; } @@ -907,14 +907,11 @@ function inplaytracker_editpost() $months = explode(", ", $mybb->settings['inplaytracker_months']); foreach($months as $month) { $checked_month = ""; - $active_month = $mybb->get_input('month'); if($active_month == $month) { $checked_month = "selected=\"selected\""; } $month_bit .= ""; } - - $year = $mybb->get_input('year'); } $private = array("-1" => "{$lang->inplaytracker_closed}", "0" => "{$lang->inplaytracker_halfopen}", "1" => "{$lang->inplaytracker_open}");