diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-15 11:15:58 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-15 11:15:58 +0000 |
| commit | 2be18cdf8c6a1ab4de0910aabce4f65b93c68fbd (patch) | |
| tree | 3886d09221d6ccd2c33f6cbf0a5e112f66363fb8 | |
| parent | 67aeece2eaf012513df31824eba6e5fbe12175ab (diff) | |
Make sure we have a valid integer even if date is empty (#1485055)
git-svn-id: https://svn.roundcube.net/trunk@1390 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/rcube_mdb2.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.php b/roundcubemail/program/include/rcube_mdb2.php index f2845d3ac..4c19e1eb7 100644 --- a/roundcubemail/program/include/rcube_mdb2.php +++ b/roundcubemail/program/include/rcube_mdb2.php @@ -500,7 +500,7 @@ class rcube_mdb2 case 'mysqli': case 'mysql': case 'sqlite': - return "FROM_UNIXTIME($timestamp)"; + return sprintf("FROM_UNIXTIME(%d)", $timestamp); default: return date("'Y-m-d H:i:s'", $timestamp); |
