michael Kraan Posted January 29, 2014 Report Posted January 29, 2014 I have found 2 erros in my error log: [29-Jan-2014 21:00:29 Europe/London] PHP Warning: Division by zero in /home/flyairli/public_html/core/modules/ACARS/ACARS.php on line 85 [29-Jan-2014 21:00:29 Europe/London] PHP Warning: Division by zero in /home/flyairli/public_html/core/modules/ACARS/ACARS.php on line 94 This is line 85: $percomplete = ABS(number_format(((($totaldistance - $flight->distremain) / $totaldistance) * 100 ), 2)); and This is line 94: $percomplete = ABS(number_format(((($totaldistance - $flight->distremain) / $totaldistance) * 100), 2)); i hope there is a fix for that, i get this error every 5 seconds in the error_log Quote
Members Vangelis Posted January 29, 2014 Members Report Posted January 29, 2014 somebody send's a zero to this variable and as you know from school 0 cannot be devided you should insert a check control for exaple if zero return false else do the calculation also what i do not understand is why you have 2 variables with the same name doing the same thing Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.