Make sure we have a valid integer even if date is empty (#1485055)

release-0.6
thomascube 17 years ago
parent 8274ef47e9
commit 3978ab3928

@ -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);

Loading…
Cancel
Save