BUG in function SaveOrder, file orders.php

pakord

No avatar

2007-06-15 13:19

Hello,

I have found bug in function SaveOrder in file orders.php

Code in line 194 conteins wrong operator "===". You must change it to "==".

I tried it change and then it works corectly...

see you..

» Quick.Cart v2.x

Robert Paluch, CZ

treewood (OpenSolution)

Avatar: treewood

2007-06-15 17:25

pakord - you have something not correct. It must be === not ==. "===" check by type and value. "==" check only by value. Then it must be "==="

pakord

No avatar

2007-06-20 11:50

Yes i know. Operator "===" compares two things 1)values 2)types
and operator "==" compares only values.

So if i keep operator "===" in code, i never get email about new order. !!

I controled email of admin -so it is correct, so what can be wrong?

If i change operator "===" to "==" then it works corectly according to doc.

I have ver. 2.2. QuicCar

pakord

wewior (OpenSolution)

Avatar: wewior

2007-06-20 14:38

pakord << you should check why on your server compare operator "===" not work in that case, (check it on simple values in some script) because it may cause problems in another scripts too.

pakord

No avatar

2007-06-22 12:57

Ok thanx for advice, i will try it...
:-)

Back to top
about us | contact