shouldnt that be
				if ($this->params->get('log_username', 0) && $this->params->get('log_sourceip',0))