Had received a module from CCAVENUE and it was working fine with Magento 1.6.2... but just recently it has started giving an error of undefined variable dec..
Has anybody had a similar issue? And any work arounds tried... any help and suggestion would be greatly appreciated.
Error
Notice: Undefined variable: dec in /home/maationl/public_html/app/code/core/Mage/Avenues/controllers/libfuncs.php3
And the relevant code
<?php
function cdec($num) {
for ($n = 0 ; $n < strlen($num) ; $n++) {
$temp = $num[$n] ;
$dec = $dec + $temp*pow(2 , strlen($num) - $n - 1);
}
return $dec;
}
?>
` html tag. http://stackoverflow.com/editing-help
– sg3s Jun 24 '12 at 13:05