fixes mapratings error: division by zero, removed a php test from scriptfile