-if (isSessionVariableSet('lead_userid')) {
- // Is the user-account unlocked and valid?
- if (fetchUserData(getSession('lead_userid'))) {
- // Secure the id number
- $content['lead_userid'] = bigintval(getSession('lead_userid'));
+if ((isSessionVariableSet('lead_userid')) && (fetchUserData(getSession('lead_userid')))) {
+ // Secure the id number
+ $content['lead_userid'] = bigintval(getSession('lead_userid'));