API fix
This commit is contained in:
		
							
								
								
									
										4
									
								
								api.php
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								api.php
									
									
									
									
									
								
							@@ -172,7 +172,9 @@ if ($settings != null || $settings != ""){
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// Issuing command
 | 
					// Issuing command
 | 
				
			||||||
if ($command == "null"){
 | 
					if ($command == "null"){
 | 
				
			||||||
	$deviceCommand = DeviceManager::getDeviceByToken($token)["command"];
 | 
						$device = DeviceManager::getDeviceByToken($token);
 | 
				
			||||||
 | 
						$deviceId = $device['device_id'];
 | 
				
			||||||
 | 
						$deviceCommand = $device["command"];
 | 
				
			||||||
	if ($deviceCommand != '' || $deviceCommand != null)
 | 
						if ($deviceCommand != '' || $deviceCommand != null)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		$command = $deviceCommand;
 | 
							$command = $deviceCommand;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user