mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix Scrutinizer "bugs"
This commit is contained in:
parent
4db7e2fb94
commit
66c34f012d
@ -44,11 +44,14 @@ class timesheet_egw_record implements importexport_iface_egw_record
|
|||||||
public function __construct( $_identifier='' ){
|
public function __construct( $_identifier='' ){
|
||||||
$this->identifier = $_identifier;
|
$this->identifier = $_identifier;
|
||||||
$this->botimesheet = new timesheet_bo();
|
$this->botimesheet = new timesheet_bo();
|
||||||
$data = $this->botimesheet->read($this->identifier);
|
|
||||||
|
if (($data = $this->botimesheet->read($this->identifier)))
|
||||||
|
{
|
||||||
// set ts_project from ts_project_blur, where it get moved, if it is no custom value
|
// set ts_project from ts_project_blur, where it get moved, if it is no custom value
|
||||||
if (empty($data['ts_project'])) $data['ts_project'] = $data['ts_project_blur'];
|
if (empty($data['ts_project'])) $data['ts_project'] = $data['ts_project_blur'];
|
||||||
$this->set_record($data);
|
$this->set_record($data);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* magic method to set attributes of record
|
* magic method to set attributes of record
|
||||||
|
Loading…
Reference in New Issue
Block a user