[geeklog-cvs] geeklog: Set empty fields to an empty string, not zero

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Mar 27 10:51:51 EDT 2010


changeset 7839:55540f94ac4d
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/55540f94ac4d
user: Dirk Haun <dirk at haun-online.de>
date: Sat Mar 27 15:04:43 2010 +0100
description:
Set empty fields to an empty string, not zero

diffstat:

 system/classes/story.class.php |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 14e7975aeef8 -r 55540f94ac4d system/classes/story.class.php
--- a/system/classes/story.class.php	Sat Mar 27 14:36:04 2010 +0100
+++ b/system/classes/story.class.php	Sat Mar 27 15:04:43 2010 +0100
@@ -771,7 +771,7 @@
                 } else {
                     if($this->{$varname}=='')
                     {
-                        $values.="0, ";
+                        $values.="'', ";
                     }
                     else
                     {



More information about the geeklog-cvs mailing list