[geeklog-cvs] geeklog: Fix handling of empty entries vs. zero again for Postgr...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Mar 27 10:51:53 EDT 2010
changeset 7842:d9f6e490958d
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/d9f6e490958d
user: Dirk Haun <dirk at haun-online.de>
date: Sat Mar 27 15:24:45 2010 +0100
description:
Fix handling of empty entries vs. zero again for PostgreSQL
diffstat:
system/classes/story.class.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r f8109f8f4ac1 -r d9f6e490958d system/classes/story.class.php
--- a/system/classes/story.class.php Sat Mar 27 15:06:54 2010 +0100
+++ b/system/classes/story.class.php Sat Mar 27 15:24:45 2010 +0100
@@ -770,7 +770,7 @@
// let the DB server do this conversion (cf. timezone hack)
$values .= 'FROM_UNIXTIME(' . $this->{$varname} . '), ';
} else {
- if($this->{$varname}=='')
+ if ($this->{$varname} === '')
{
$values.="'', ";
}
More information about the geeklog-cvs
mailing list