Warning (2): Division by zero [APP/View/Ships/view.ctp, line 31]Code Context<?php
foreach ($scores as $i => $score){
$size = round($score / $ship['Ship']['score_cache'] * 100);
$viewFile = '/var/www/rtf15/app/View/Ships/view.ctp' $dataForView = array( 'transactions' => array(), 'ship' => array( 'Ship' => array( 'id' => '10', 'name' => 'VSD Aggressor', 'com_id' => '5359', 'score_cache' => '0' ), 'COM' => array( 'id' => '5359', 'name' => 'Crsepe', 'rank_id' => '11', 'missions' => '0', 'missionhs' => '0', 'battlehs' => '0', 'fiction' => '0', 'gfx' => '0', 'loc' => '0', 'los' => '0', 'dfc' => '0', 'mp_bonus_win' => '0', 'mp_bonus_win2' => '0', 'mp_bonus_loss' => '0', 'bonus' => '0', 'squadron_id' => null, 'position' => null, 'SP' => '0', 'MP' => '0', 'Art' => '0', 'score' => '0' ), 'Squadron' => array() ), 'admin' => null ) $transactions = array() $ship = array( 'Ship' => array( 'id' => '10', 'name' => 'VSD Aggressor', 'com_id' => '5359', 'score_cache' => '0' ), 'COM' => array( 'id' => '5359', 'name' => 'Crsepe', 'rank_id' => '11', 'missions' => '0', 'missionhs' => '0', 'battlehs' => '0', 'fiction' => '0', 'gfx' => '0', 'loc' => '0', 'los' => '0', 'dfc' => '0', 'mp_bonus_win' => '0', 'mp_bonus_win2' => '0', 'mp_bonus_loss' => '0', 'bonus' => '0', 'squadron_id' => null, 'position' => null, 'SP' => '0', 'MP' => '0', 'Art' => '0', 'score' => '0' ), 'Squadron' => array() ) $admin = null $colours = array( (int) 0 => 'muted', (int) 1 => 'danger', (int) 2 => 'info', (int) 3 => 'success', (int) 4 => 'primary' ) $scores = array( (int) 0 => '0' ) $score = '0' $i = (int) 0include - APP/View/Ships/view.ctp, line 31 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
No recent activity
Built with CakePHP and Bootstrap by GN Pickled Yoda.