Unexpected "}"

I am getting Parse error: syntax error, unexpected ‘}’ in C:\xampp\htdocs\ est\cms.php on line 15 (the bracket just below ‘$this->connect()’).

I am not sure why… Can anyone see what I am missing?


class cms
	{
		public $server;
		public $username;
		public $password;

		public function __construct($server, $username, $password="", $connect=true)
			{
				$this->server=$server;
				$this->user=$username;
				$this->pass=$password;
				if ($connect)
					{
						$this->connect()
					}
			}
		public function connect()
			{
				$this->link= mysqli_connect($this->server, $this->user, $this->pass);
				if (!$this->link)
					{
						$this->dbase= 'Database_invalid';
						return $this->dbase;
					}
				if (mysqli_set_charset($link, 'utf8'))
					{
						$this->charset= 'charset_invalid';
						return $this->charset;
					}
				if (!mysqli_select_db($link, 'design31'))
					{
						$this->seldbase= 'db_invalid';
						return $this->seldbase;
					}
				print ('Connection Established');
				return true;
			}


You need a semicolon after $this->connect()

Thank You… I knew it had to be a small error…