View Single Post
  #13  
Old 03-26-2012, 09:49 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 655,161
Hall of Famer is on a distinguished road
Default

First of all, !empty() can be used to replace is_numeric(), but I am pretty sure the redeem.php has !is_numeric(). See the difference? ! means 'not', so it is the opposite to is_numeric(). Of course it wont work if you change !is_numeric() to !empty(), it should be empty() instead.

I also do not recommend you to change every is_numeric() to !empty(), unless all your table IDs are alphanumeric. If the trade id is still numeric, you are better off just leave the code the way it was.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote