Fix for Postgres DB error loading eTemplate from Yudhi Kusnanto

This commit is contained in:
Nathan Gray 2010-04-25 23:47:16 +00:00
parent afafbec708
commit f47cced6ed

View File

@ -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');
@ -1268,4 +1268,4 @@ class soetemplate
self::$db_cols = self::$db_key_cols + self::$db_data_cols;
}
}
soetemplate::_init_static();
soetemplate::_init_static();