Warning (2): Division by zero [APP/View/Ships/view.ctp, line 30]Code Context<?php
foreach ($scores as $i => $score) {
$size = round($score / $ship['Ship']['score_cache'] * 100);
$viewFile = '/var/www/rtf/app/View/Ships/view.ctp' $dataForView = array( 'transactions' => array(), 'ship' => array( 'Ship' => array( 'id' => '197', 'name' => 'ISDII Grey Wolf', 'com_id' => null, 'battlegroup_id' => '231', 'score_cache' => '0.00' ), 'COM' => array( 'id' => null, 'name' => null, 'rank_id' => null, 'missions' => null, 'missionhs' => null, 'battlehs' => null, 'iu' => null, 'fiction' => null, 'gfx' => null, 'loc' => null, 'los' => null, 'dfc' => null, 'mp_bonus_win' => null, 'mp_bonus_win2' => null, 'mp_bonus_loss' => null, 'bonus' => null, 'squadron_id' => null, 'position' => null, 'tcdb' => null, 'SP' => null, 'MP' => null, 'Art' => null, 'writing' => null, 'score' => null ), 'Battlegroup' => array( 'id' => '231', 'name' => 'Battlegroup I', 'bgcom_id' => '55730', 'score_cache' => '42634.09', 'start_score' => '0', 'score_calculation' => '42634.09' ), 'Squadron' => array() ), 'admin' => null ) $transactions = array() $ship = array( 'Ship' => array( 'id' => '197', 'name' => 'ISDII Grey Wolf', 'com_id' => null, 'battlegroup_id' => '231', 'score_cache' => '0.00' ), 'COM' => array( 'id' => null, 'name' => null, 'rank_id' => null, 'missions' => null, 'missionhs' => null, 'battlehs' => null, 'iu' => null, 'fiction' => null, 'gfx' => null, 'loc' => null, 'los' => null, 'dfc' => null, 'mp_bonus_win' => null, 'mp_bonus_win2' => null, 'mp_bonus_loss' => null, 'bonus' => null, 'squadron_id' => null, 'position' => null, 'tcdb' => null, 'SP' => null, 'MP' => null, 'Art' => null, 'writing' => null, 'score' => null ), 'Battlegroup' => array( 'id' => '231', 'name' => 'Battlegroup I', 'bgcom_id' => '55730', 'score_cache' => '42634.09', 'start_score' => '0', 'score_calculation' => '42634.09' ), 'Squadron' => array() ) $admin = null $colours = array( (int) 0 => 'muted', (int) 1 => 'danger', (int) 2 => 'info', (int) 3 => 'success', (int) 4 => 'primary', (int) 5 => 'muted', (int) 6 => 'danger', (int) 7 => 'info' ) $scores = array( (int) 0 => null ) $score = null $i = (int) 0include - APP/View/Ships/view.ctp, line 30 View::_evaluate() - CORE/Cake/View/View.php, line 935 View::_render() - CORE/Cake/View/View.php, line 897 View::render() - CORE/Cake/View/View.php, line 466 Controller::render() - CORE/Cake/Controller/Controller.php, line 954 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 192 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160 [main] - APP/webroot/index.php, line 108
Built with CakePHP and Bootstrap by GN Pickled Yoda.