diff options
Diffstat (limited to 'app/Models/DatabaseDAO.php')
| -rw-r--r-- | app/Models/DatabaseDAO.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/app/Models/DatabaseDAO.php b/app/Models/DatabaseDAO.php index b34c0fc66..1a6a824e5 100644 --- a/app/Models/DatabaseDAO.php +++ b/app/Models/DatabaseDAO.php @@ -347,13 +347,8 @@ SQL; //SQLite is the only one with database-level optimization, instead of at table level. $this->optimize(); } - } else { - if ($databaseDAO->exits()) { - $nbEntries = $entryDAO->countUnreadRead(); - if (isset($nbEntries['all']) && $nbEntries['all'] > 0) { - $error = 'Error: Destination database already contains some entries!'; - } - } + } elseif ($databaseDAO->exits() && $entryDAO->count() > 0) { + $error = 'Error: Destination database already contains some entries!'; } break; default: |
