Commit 4f4991e8 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(simpleplugin) Fix PHP error in deserializeValue

issue #5811
Showing with 2 additions and 2 deletions
+2 -2
...@@ -633,14 +633,14 @@ class Attribute ...@@ -633,14 +633,14 @@ class Attribute
/*! \brief Apply value from RPC requests /*! \brief Apply value from RPC requests
* *
* \param array $values the values array * \param mixed $value the value
*/ */
function deserializeValue($value) function deserializeValue($value)
{ {
if ($this->disabled) { if ($this->disabled) {
return sprintf(_('Attribute %s is disabled, its value could not be set'), $this->getLdapName()); return sprintf(_('Attribute %s is disabled, its value could not be set'), $this->getLdapName());
} }
$this->setValue($values[$this->getLdapName()]); $this->setValue($value);
} }
/*! \brief Add ACL information around display /*! \brief Add ACL information around display
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment