Use of undefined constant state - assumed 'state'

This commit is contained in:
Frédéric FRANCE 2020-08-20 12:14:40 +02:00 committed by GitHub
parent 03e8a0737c
commit b4d2bf98fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,7 +242,7 @@ class DoliStorage implements TokenStorageInterface
$sql.= " WHERE service='".$this->db->escape($service)."'";
$resql = $this->db->query($sql);
$result = $this->db->fetch_array($resql);
$states[$service] = $result[state];
$states[$service] = $result['state'];
$this->states[$service] = $states[$service];
return is_array($states)