Improve project api procedures
This commit is contained in:
10
vendor/PicoDb/Table.php
vendored
10
vendor/PicoDb/Table.php
vendored
@@ -70,11 +70,7 @@ class Table
|
||||
|
||||
$result = $this->db->execute($sql, $values);
|
||||
|
||||
if ($result !== false/* && $result->rowCount() > 0*/) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return $result !== false && $result->rowCount() > 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +102,9 @@ class Table
|
||||
$this->conditions()
|
||||
);
|
||||
|
||||
return false !== $this->db->execute($sql, $this->values);
|
||||
$result = $this->db->execute($sql, $this->values);
|
||||
|
||||
return $result !== false && $result->rowCount() > 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user