diff --git a/miniflux/vendor/PicoDb/Table.php b/miniflux/vendor/PicoDb/Table.php index f543fd8..f05532b 100644 --- a/miniflux/vendor/PicoDb/Table.php +++ b/miniflux/vendor/PicoDb/Table.php @@ -63,7 +63,14 @@ class Table $this->conditions() ); - return false !== $this->db->execute($sql, $values); + $result = $this->db->execute($sql, $values); + + if ($result !== false && $result->rowCount() > 0) { + + return true; + } + + return false; } @@ -290,6 +297,17 @@ class Table } break; + case 'notin': + if (is_array($arguments[1])) { + + $sql = sprintf( + '%s NOT IN (%s)', + $this->db->escapeIdentifier($column), + implode(', ', array_fill(0, count($arguments[1]), '?')) + ); + } + break; + case 'like': $sql = sprintf('%s LIKE ?', $this->db->escapeIdentifier($column)); break;