fix Scrutinizer "bugs"

This commit is contained in:
Ralf Becker 2016-06-29 10:41:59 +02:00
parent 4db7e2fb94
commit 66c34f012d

View File

@ -44,11 +44,14 @@ class timesheet_egw_record implements importexport_iface_egw_record
public function __construct( $_identifier='' ){
$this->identifier = $_identifier;
$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
if (empty($data['ts_project'])) $data['ts_project'] = $data['ts_project_blur'];
$this->set_record($data);
}
}
/**
* magic method to set attributes of record