/* * Patch for filter_var() */ if(!function_exists('filter_var')){ define('FILTER_VALIDATE_IP', 'ip'); define('FILTER_FLAG_IPV4', 'ipv4'); define('FILTER_FLAG_IPV6', 'ipv6'); define('FILTER_VALIDATE_EMAIL', 'email'); define('FILTER_FLAG_EMAIL_UNICODE', 'unicode'); function filter_var($variable, $filter, $option = false){ if($filter == 'ip'){ if($option == 'ipv4'){ if(preg_match("/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } if($option == 'ipv6'){ if(preg_match("/\s*(([:.]{0,7}[0-9a-fA-F]{0,4}){1,8})\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } if($filter == 'email'){ if($option == 'unicode' || $option == false){ if(preg_match("/\s*(\S*@\S*\.\S*)\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } } }
A few days ago I posted a post in the Fleet Quantity bug thread that it wasn't fixed, I'm not sure if any of the admins looked at it, but since I was given no response and the bug is still around, I thought I make a new post for it.
Essentially what is happening is the following;
I have five fleets, one for each of my 5 hubs and then a 6th one for aircraft that I am selling or leasing out. The one for leasing/selling is showing up at 0, while I do have 2 aircraft in it right now. I have tried to reassign them, then put them back in the fleet, it still shows up at "0" in the view/buy screen.