Quote:
Originally Posted by xsurf
Ah, never mind, fixed it! Looks like it's working for me now - I changed
PHP Code:
if ($mode == "add" && strpos($_SERVER['HTTP_REFERER'], "cart.php")>0 )
to
PHP Code:
if ($mode == "add" && (strpos($_SERVER['HTTP_REFERER'], "cart.php") == false))
|
PHP Code:
if ($mode == "add" && (strpos($_SERVER['HTTP_REFERER'], "cart.php") == false))
similarly
PHP Code:
if ($mode == "add" && (strpos($_SERVER['HTTP_REFERER'], "cart.php") == 0))
Because if you want to add conditions when the line does not contain some substring, you should write to verify
"strpos($_SERVER['HTTP_REFERER'], "cart.php") === false
" result for this function.