diff --git a/htdocs/mrp/class/api_mos.class.php b/htdocs/mrp/class/api_mos.class.php index 963da439180..9dcb26149ef 100644 --- a/htdocs/mrp/class/api_mos.class.php +++ b/htdocs/mrp/class/api_mos.class.php @@ -225,12 +225,9 @@ class Mos extends DolibarrApi $this->mo->$field = $value; } - if ($this->mo->update($id, DolibarrApiAccess::$user) > 0) - { + if ($this->mo->update($id, DolibarrApiAccess::$user) > 0) { return $this->get($id); - } - else - { + } else { throw new RestException(500, $this->mo->error); } }