Skip to content
Snippets Groups Projects
Commit c743f6cf authored by Frédéric France's avatar Frédéric France
Browse files

If no project, update line is impossible

parent 608c9370
No related branches found
No related tags found
No related merge requests found
......@@ -1265,7 +1265,9 @@ class ExpenseReport extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."projet as p";
$sql.= " WHERE p.rowid = ".$projet_id;
$result = $this->db->query($sql);
$objp_projet = $this->db->fetch_object($result);
if ($result) {
$objp_projet = $this->db->fetch_object($result);
}
$ligne->projet_ref = $objp_projet->ref_projet;
$ligne->projet_title = $objp_projet->title_projet;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment