diff options
author | msquare <msquare@notrademark.de> | 2017-07-28 18:50:00 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-07-28 18:50:00 +0200 |
commit | 5794c4cab8f6ef0529dfc51343b5ec78b134fb2a (patch) | |
tree | 02651ade8969f2e1cb0c75e0fc9a91cac08f8121 /src/Database | |
parent | 144b453bc6b594ea16838a006eb20b04e5b5ec19 (diff) |
clear delete queries from false resuls
Diffstat (limited to 'src/Database')
-rw-r--r-- | src/Database/Db.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Database/Db.php b/src/Database/Db.php index 46edc96b..b433f40d 100644 --- a/src/Database/Db.php +++ b/src/Database/Db.php @@ -113,13 +113,13 @@ class Db * * @param string $query * @param array $bindings - * @return int|bool + * @return int */ public static function delete($query, array $bindings = []) { self::query($query, $bindings); - return (self::$lastStatus ? self::$stm->rowCount() : false); + return self::$stm->rowCount(); } /** |