kosztyua / softether-radacct

SoftEther RADIUS accounting PHP script
GNU General Public License v2.0
36 stars 16 forks source link

functions.php:getsessiondata($sessid) #4

Closed OkkioXavier closed 8 years ago

OkkioXavier commented 8 years ago

Should if(strpos($SessionGet[0],"rror occurred") != FALSE) { die("Error - SessionGet resulted in error");

be

if(strpos($SessionGet[0],"Error occurred") != FALSE) { die("Error - SessionGet resulted in error");

?

kosztyua commented 8 years ago

I seem to recall having some reason for doing so, skipping the E from the check. Maybe different errors can occur here and can be lower case too, and didn't remember there was case-insensitive stripos function? In any case, doesn't make much difference, but thank you for noticing :)