diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-09 15:15:04 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-09 15:15:04 +0200 |
commit | ef95c7c28479a22e41fff35a893f05eb084e1f2c (patch) | |
tree | 0ad91fa529ef4fc86be8df106c54ba4ff8053ea1 /vendor/PicoDb/Table.php | |
parent | 685d1cc44cea32c6dbab95d05c882aa808bcab44 (diff) |
Improve project api procedures
Diffstat (limited to 'vendor/PicoDb/Table.php')
-rw-r--r-- | vendor/PicoDb/Table.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/vendor/PicoDb/Table.php b/vendor/PicoDb/Table.php index 60a1280c..b333feb4 100644 --- a/vendor/PicoDb/Table.php +++ b/vendor/PicoDb/Table.php @@ -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; } |