diff options
author | thomascube <thomas@roundcube.net> | 2008-05-15 11:15:58 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-05-15 11:15:58 +0000 |
commit | 3978ab3928776670299cac6498d86297bf1a2dec (patch) | |
tree | 3dde70825de04387b6436a20db17f2ba5c0bc844 /program/include/rcube_mdb2.php | |
parent | 8274ef47e9e9b2c956c209b6f7d0b30b7c676530 (diff) |
Make sure we have a valid integer even if date is empty (#1485055)
Diffstat (limited to 'program/include/rcube_mdb2.php')
-rw-r--r-- | program/include/rcube_mdb2.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php index f2845d3ac..4c19e1eb7 100644 --- a/program/include/rcube_mdb2.php +++ b/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); |