function store($updateNulls = false) { if ($this->source != '') { if ($this->name == '') { $this->name = 'Guest'; } else { $this->name = JCommentsMigrationTool::processName($this->name); } if ($this->username == '') { $this->username = $this->name; } else { $this->username = JCommentsMigrationTool::processName($this->username); } $this->email = strip_tags($this->email); $this->homepage = strip_tags($this->homepage); $this->title = strip_tags($this->title); $this->comment = JCommentsMigrationTool::processComment(stripslashes($this->comment)); if (!isset($this->source_id)) { $this->source_id = 0; } } return parent::store($updateNulls); }