mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	fixed failing testing for successful json_decode
This commit is contained in:
		
							parent
							
								
									75e1131a70
								
							
						
					
					
						commit
						f984531742
					
				@ -54,7 +54,7 @@ class UpgradeCommand extends AbstractCommand
 | 
			
		||||
        	// Check version
 | 
			
		||||
        	$version = json_decode(file_get_contents(self::UPGRADE));
 | 
			
		||||
 | 
			
		||||
        	if ($version !== false) {
 | 
			
		||||
        	if ($version !== false && $version !== null) {
 | 
			
		||||
        		$versionCompare = version_compare(MAGALLANES_VERSION, $version->latest);
 | 
			
		||||
        		if ($versionCompare == 0) {
 | 
			
		||||
        			Console::output('<yellow>SKIP</yellow>', 0, 1);
 | 
			
		||||
@ -94,4 +94,4 @@ class UpgradeCommand extends AbstractCommand
 | 
			
		||||
        	}
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user