Vault/Bank mod fehler meldung Sobald man draufklickt
Verfasst: 21.07.2005 21:33
habe den Vault mod eingebaut jedoch wen ich oben in der liste auf Vault klicke bekomme ich diese fehlermeldung
kann damit jedoch nix anfangen hier der code aus der datei plus minus 10 zeilenWarning: Division by zero in /www/htdocs/modos/vault.php on line 193
{
$template->assign_block_vars( 'account.stock' , array());
}
}
}
$account_time = time() - $vault['account_time'];
if ( $account_time > $vault_general['interests_time'] )
{
$interests_mult = floor ( $account_time / $vault_general['interests_time']);
$mult = 1 + ( $vault_general['interests_rate'] / 100 );
$puissance = 1 + (( $vault_general['interests_rate'] / 100 ) * $interests_mult);
$account_interests = floor ( $puissance * $vault['account_sum'] );
$sup_time = floor( $vault['account_time'] + ( $vault_general['interests_time'] * $interests_mult ));
$sql = "UPDATE " . VAULT_USERS_TABLE ."
SET account_sum = $account_interests ,
account_time = ".$sup_time."
WHERE owner_id = $user_id";
if( !$db->sql_query($sql))