Merge pull request #8134 from hregis/6.0_multicompany
Fix: avoid error -1
This commit is contained in:
commit
2d4624a1be
@ -1210,8 +1210,11 @@ abstract class CommonObject
|
|||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$row = $this->db->fetch_row($resql);
|
$row = $this->db->fetch_row($resql);
|
||||||
|
// Test for avoid error -1
|
||||||
|
if ($row[0] > 0) {
|
||||||
$result = $this->fetch($row[0]);
|
$result = $this->fetch($row[0]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user