Bugs / Aircaft cannot use
« on: October 16, 2007, 11:24:56 am »Aircraft ID: 5370
I buy this aircraft via the broker (ID:4167), but I cannot choice this aircraft at creat route page.
Please help me to reset this aircraft!
Thx. & regards
/* * 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; } } } } }
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
I brokered a plane for someone via the "Broker Request" tab. After the aircraft was delivered, some days later, the option was displayed for me to purchase the aircraft. I purchased the aircraft and it now shows up in my fleet. However, the aircraft shows it has 24 hours available, but the system won't let me schedule the plane for any routes. When looking at the planes info, it shows that it's already scheduled on other routes and it won't let me drop those routes.
This plane seems to be causing me problems. It shows daily revenue, but it looks like it may be subtracting from DOP. Very confused. Any help is appreciated as to what to do with this aircraft that's in my fleet but I can use.
Update:
When I try to view the routes that this rouge aircraft has assigned to it, I receive the following PHP error message. Seems to be a bug in the code.
Warning: Division by zero in /var/www/vhosts/airlinemogul.com/httpdocs/airlinemogul/view_route.php on line 39
Warning: Division by zero in /var/www/vhosts/airlinemogul.com/httpdocs/airlinemogul/view_route.php on line 39
Warning: Division by zero in /var/www/vhosts/airlinemogul.com/httpdocs/airlinemogul/view_route.php on line 40
Warning: Division by zero in /var/www/vhosts/airlinemogul.com/httpdocs/airlinemogul/view_route.php on line 41
-