Index: trunk/kernel/include/category.php =================================================================== diff -u -r1348 -r1442 --- trunk/kernel/include/category.php (.../category.php) (revision 1348) +++ trunk/kernel/include/category.php (.../category.php) (revision 1442) @@ -100,11 +100,13 @@ function Create() { - if((int)$this->Get("CreatedOn")==0) - $this->Set("CreatedOn",date("U")); - parent::Create(); - if($this->tablename==GetTablePrefix()."Category") - $this->ClearCacheData(); + if( (int) $this->Get("CreatedOn") == 0) { + $this->Set("CreatedOn",date("U")); + } + parent::Create(); + if($this->tablename == GetTablePrefix()."Category") { + $this->ClearCacheData(); + } } function SetParentId($value)