mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-22 00:07:14 +00:00
use start as end time if end is not set separately
This commit is contained in:
parent
f2588ad132
commit
d519d88604
@ -8,7 +8,11 @@ class Logbook_model extends CI_Model {
|
|||||||
$callsign = str_replace('Ø', '0', $this->input->post('callsign'));
|
$callsign = str_replace('Ø', '0', $this->input->post('callsign'));
|
||||||
// Join date+time
|
// Join date+time
|
||||||
$datetime = date("Y-m-d",strtotime($this->input->post('start_date')))." ". $this->input->post('start_time');
|
$datetime = date("Y-m-d",strtotime($this->input->post('start_date')))." ". $this->input->post('start_time');
|
||||||
$datetime_off = date("Y-m-d",strtotime($this->input->post('start_date')))." ". $this->input->post('end_time');
|
if ($this->input->post('end_time') != null) {
|
||||||
|
$datetime_off = date("Y-m-d",strtotime($this->input->post('start_date')))." ". $this->input->post('end_time');
|
||||||
|
} else {
|
||||||
|
$datetime_off = $datetime;
|
||||||
|
}
|
||||||
if ($this->input->post('prop_mode') != null) {
|
if ($this->input->post('prop_mode') != null) {
|
||||||
$prop_mode = $this->input->post('prop_mode');
|
$prop_mode = $this->input->post('prop_mode');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user