public static function userProfile($uid, $selector = array()) { if ($uid != null) { setifunset($selector, "id", $uid); } return Sqle::selectVal("users", "*", $selector, 1); }