Aleksander Machniak
2015-06-06 ed5a7b48c0e8ab9fccc28c35ba3a34296d69cd03
program/lib/Roundcube/rcube_db_sqlite.php
@@ -1,6 +1,6 @@
<?php
/**
/*
 +-----------------------------------------------------------------------+
 | This file is part of the Roundcube Webmail client                     |
 | Copyright (C) 2005-2012, The Roundcube Dev Team                       |
@@ -27,13 +27,6 @@
class rcube_db_sqlite extends rcube_db
{
    public $db_provider = 'sqlite';
    /**
     * Database character set
     */
    protected function set_charset($charset)
    {
    }
    /**
     * Prepare connection
@@ -94,11 +87,17 @@
    /**
     * Return SQL function for current time and date
     *
     * @param int $interval Optional interval (in seconds) to add/subtract
     *
     * @return string SQL function to use in query
     */
    public function now()
    public function now($interval = 0)
    {
        return "datetime('now')";
        if ($interval) {
            $add = ($interval > 0 ? '+' : '') . intval($interval) . ' seconds';
        }
        return "datetime('now'" . ($add ? ",'$add'" : "") . ")";
    }
    /**