Quote:
Originally Posted by ArchangelX
Any help here? *sigh*
|
OK I posted this, then deleted it, now reposting after I read the topic a little closer, seems it was never resolved.
To get rid of the divide by zero errors on the current vbtrade application:
open vbtrade.php
on line 112 find
PHP Code:
$gainper = number_format((($gain/$mktval)*100),3);
and replace with:
PHP Code:
if ($mktval != 0)
$gainper = number_format((($gain/$mktval)*100),3);
else
$gainper = 0;
Everything else seems to work, make a backup of the original file just in case.