From c905e3a5ebed5a2d83b4d581388ebbb3bacc5201 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 10 Aug 2015 22:06:00 +0200 Subject: [PATCH] do not check if unlink() was successful --- SeedDMS_SQLiteFTS/SQLiteFTS/Indexer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SeedDMS_SQLiteFTS/SQLiteFTS/Indexer.php b/SeedDMS_SQLiteFTS/SQLiteFTS/Indexer.php index 337298035..a1abab017 100644 --- a/SeedDMS_SQLiteFTS/SQLiteFTS/Indexer.php +++ b/SeedDMS_SQLiteFTS/SQLiteFTS/Indexer.php @@ -55,8 +55,7 @@ class SeedDMS_SQLiteFTS_Indexer { * @param string $indexerDir directory on disk containing the index */ static function create($indexerDir) { /* {{{ */ - if(!@unlink($indexerDir.'/index.db')) - return null; + unlink($indexerDir.'/index.db'); $index = new SeedDMS_SQLiteFTS_Indexer($indexerDir); $sql = 'CREATE VIRTUAL TABLE docs USING fts4(title, comment, keywords, category, owner, content, created, notindexed=created, matchinfo=fts3)'; $res = $index->_conn->exec($sql);