Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into 6.0

This commit is contained in:
Laurent Destailleur 2018-02-08 12:45:30 +01:00
commit 8156374005

View File

@ -1210,7 +1210,10 @@ abstract class CommonObject
if ($resql) if ($resql)
{ {
$row = $this->db->fetch_row($resql); $row = $this->db->fetch_row($resql);
$result = $this->fetch($row[0]); // Test for avoid error -1
if ($row[0] > 0) {
$result = $this->fetch($row[0]);
}
} }
return $result; return $result;