Просмотр поста

.
Onatolich

Пардоньте. Лучше так, ибо 0 не пропустит

$userId = intval($alb['userid']);
if (ctype_digit($userId) && $userId >= 0) {
    add_coins($userId, '5');
}