Fix: avoid error -1
This commit is contained in:
parent
906a9eaa5a
commit
839de65012
1 changed files with 4 additions and 1 deletions
|
|
@ -1210,7 +1210,10 @@ abstract class CommonObject
|
|||
if ($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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue