adding debug logs
This commit is contained in:
		| @@ -256,6 +256,9 @@ class MatchManagerTMWTDuoIntegration implements CallbackListener, ManialinkPageA | |||||||
| 			$this->maniaControl->getChat()->sendErrorToAdmins($this->MatchManagerCore->getChatPrefix() . "S_TeamsUrl must be defined"); | 			$this->maniaControl->getChat()->sendErrorToAdmins($this->MatchManagerCore->getChatPrefix() . "S_TeamsUrl must be defined"); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|  | 		var_dump($this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TEAM1), $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TEAM2)); | ||||||
|  |  | ||||||
| 		if ( | 		if ( | ||||||
| 			$this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TEAM1) === '' || | 			$this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TEAM1) === '' || | ||||||
| 			$this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TEAM2) === '' | 			$this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TEAM2) === '' | ||||||
| @@ -351,6 +354,8 @@ class MatchManagerTMWTDuoIntegration implements CallbackListener, ManialinkPageA | |||||||
| 					$team1 = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TEAM1); | 					$team1 = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TEAM1); | ||||||
| 					$team2 = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TEAM2); | 					$team2 = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_TEAM2); | ||||||
|  |  | ||||||
|  | 					var_dump($team1, $team2); | ||||||
|  |  | ||||||
| 					foreach ($json as $team) { | 					foreach ($json as $team) { | ||||||
| 						if ($team->Id === $team1) { | 						if ($team->Id === $team1) { | ||||||
| 							$team1 = null; | 							$team1 = null; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user