// Is given userid valid?
function isValidUserId ($userid) {
+ // Handle NULL
+ if (is_null($userid)) {
+ // Do not handle this as of below isset() will always return false
+ return false;
+ } // END - if
+
// Do we have cache?
if (!isset($GLOBALS[__FUNCTION__][$userid])) {
// Check it out