Committer: sbelyaev
LJSUP-13445: Home page optimization: stage 2U trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm =================================================================== --- trunk/cgi-bin/LJ/User.pm 2012-08-28 13:07:01 UTC (rev 22757) +++ trunk/cgi-bin/LJ/User.pm 2012-08-28 13:18:15 UTC (rev 22758) @@ -7203,7 +7203,7 @@ # check memcache { my $uid; - if ($LJ::PRELOADED_USER_IDS{$user} && !$LJ::IS_DEV_SERVER) { + if (exists $LJ::PRELOADED_USER_IDS{$user} && !$LJ::IS_DEV_SERVER) { $uid = $LJ::PRELOADED_USER_IDS{$user}; } else { $uid = LJ::MemCache::get("uidof:$user"); @@ -10385,7 +10385,7 @@ $user = LJ::canonical_username($user); - if ($LJ::PRELOADED_USER_IDS{$user} && !$LJ::IS_DEV_SERVER) { return $LJ::PRELOADED_USER_IDS{user}; } + if (exists $LJ::PRELOADED_USER_IDS{$user} && !$LJ::IS_DEV_SERVER) { return $LJ::PRELOADED_USER_IDS{user}; } if ($LJ::CACHE_USERID{$user}) { return $LJ::CACHE_USERID{$user}; } my $userid = LJ::MemCache::get("uidof:$user");