yes i see a fault in your code so it is correct:
PHP Code:
$inboxpms=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=0 $ignoreusers");
if ($inboxpms < 1) {
$pmpercent = "1"; // stop divisions by zero
} else {
$pmpercent = round(($inboxpms[messages] / $pmquota) * 100,2);
}
if ($pmpercent>50 && $pmpercent<=75) {
$barimg="https://vborg.vbsupport.ru/vbimages/yellow.gif";
} elseif ($pmpercent>75) {
$barimg="https://vborg.vbsupport.ru/vbimages/red.gif";
} else {
$barimg="https://vborg.vbsupport.ru/vbimages/green.gif";
}
remember when something is higher than 75 ist also higher than 50