update
This commit is contained in:
		
				
					committed by
					
						
						Steffen Schröder
					
				
			
			
				
	
			
			
			
						parent
						
							dac702b627
						
					
				
				
					commit
					adaf59cbd9
				
			@@ -37,7 +37,7 @@ class ErrorHandler {
 | 
			
		||||
		$message .= "Trace: {$ex->getTraceAsString()}" . PHP_EOL;
 | 
			
		||||
		logMessage($message);
 | 
			
		||||
 | 
			
		||||
		$error = array();
 | 
			
		||||
		$error                    = array();
 | 
			
		||||
		$error["Type"]            = "Exception";
 | 
			
		||||
		$error["Message"]         = $message;
 | 
			
		||||
		$error['OperatingSystem'] = php_uname();
 | 
			
		||||
@@ -87,30 +87,30 @@ class ErrorHandler {
 | 
			
		||||
			// Error suppressed
 | 
			
		||||
			return false;
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
		// Log error
 | 
			
		||||
		$errorTag = $this->getErrorTag($errorNumber);
 | 
			
		||||
		$message  = "{$errorTag}: {$errorString} in File '{$errorFile}' on Line {$errorLine}!";
 | 
			
		||||
		logMessage($message);
 | 
			
		||||
 | 
			
		||||
		if ($errorNumber != E_USER_ERROR && $errorNumber != E_USER_WARNING && $errorNumber != E_USER_NOTICE) {
 | 
			
		||||
			$error                    = array();
 | 
			
		||||
 | 
			
		||||
			$error["Type"]            = "Error";
 | 
			
		||||
			$error["Message"]         = $message;
 | 
			
		||||
			$error['OperatingSystem'] = php_uname();
 | 
			
		||||
			$error['PHPVersion']      = phpversion();
 | 
			
		||||
			
 | 
			
		||||
			if ($this->maniaControl->server != null) {
 | 
			
		||||
 | 
			
		||||
			if ($this->maniaControl->server) {
 | 
			
		||||
				$error['ServerLogin'] = $this->maniaControl->server->login;
 | 
			
		||||
			} else {
 | 
			
		||||
				$error['ServerLogin'] = null;
 | 
			
		||||
				$error['ServerLogin'] = '';
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if ($this->maniaControl->settingManager != null && $this->maniaControl->updateManager != null) {
 | 
			
		||||
			if ($this->maniaControl->settingManager && $this->maniaControl->updateManager) {
 | 
			
		||||
				$error['UpdateChannel']       = $this->maniaControl->settingManager->getSetting($this->maniaControl->updateManager, UpdateManager::SETTING_UPDATECHECK_CHANNEL);
 | 
			
		||||
				$error['ManiaControlVersion'] = $this->maniaControl->updateManager->getCurrentBuildDate();
 | 
			
		||||
			} else {
 | 
			
		||||
				$error['UpdateChannel']       = null;
 | 
			
		||||
				$error['UpdateChannel']       = '';
 | 
			
		||||
				$error['ManiaControlVersion'] = ManiaControl::VERSION;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user