From 69103a7fce8faa79d488ff6045ed728c17a94551 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 26 Apr 2010 07:09:30 +0000 Subject: [PATCH] "backporting Nathans Postgres fix to 1.6" --- etemplate/inc/class.soetemplate.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.soetemplate.inc.php b/etemplate/inc/class.soetemplate.inc.php index c2faf340e9..f83b55d903 100644 --- a/etemplate/inc/class.soetemplate.inc.php +++ b/etemplate/inc/class.soetemplate.inc.php @@ -835,7 +835,7 @@ class soetemplate { $this->modified = time(); } - if (is_null($this->group) && !is_int($this->group)) $this->group = 0; + if (is_null($this->group) || !is_int($this->group)) $this->group = 0; $this->db->insert(self::TABLE,$this->as_array(3,true),$this->as_array(-1,true),__LINE__,__FILE__,'etemplate');