View Single Post
Old 10-28-2011, 11:26 PM  
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
Oh good lord.... lol.. The "proper" way.

Code:
if( !isset($page) || $page !== true ){
That assumes that $page will contain a proper php boolean type.. And yes, the extra = is not a typo because it doesn't just check the value but also the "type". However, if it's a 0/1 then it should just be

Code:
if( !isset($page) || $page != 1 ){
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote