@@ 197-201 (lines=5) @@ | ||
194 | } else { |
|
195 | $story = new NewsStory(); |
|
196 | $published = isset($_POST['publish_date']) ? $_POST['publish_date'] : 0; |
|
197 | if (!empty($published) && isset($_POST['autodate']) && (int)(1 == $_POST['autodate'])) { |
|
198 | $published = strtotime($published['date']) + $published['time']; |
|
199 | } else { |
|
200 | $published = 0; |
|
201 | } |
|
202 | $expired = isset($_POST['expiry_date']) ? $_POST['expiry_date'] : 0; |
|
203 | if (!empty($expired) && isset($_POST['autoexpdate']) && (int)(1 == $_POST['autoexpdate'])) { |
|
204 | $expired = strtotime($expired['date']) + $expired['time']; |
|
@@ 203-207 (lines=5) @@ | ||
200 | $published = 0; |
|
201 | } |
|
202 | $expired = isset($_POST['expiry_date']) ? $_POST['expiry_date'] : 0; |
|
203 | if (!empty($expired) && isset($_POST['autoexpdate']) && (int)(1 == $_POST['autoexpdate'])) { |
|
204 | $expired = strtotime($expired['date']) + $expired['time']; |
|
205 | } else { |
|
206 | $expired = 0; |
|
207 | } |
|
208 | } |
|
209 | $topicid = $topic_id; |
|
210 | if (isset($_POST['topicdisplay'])) { |