$rc is undefine when admin login
Merge pull request #1495 from tao-s/patch-4

$rc is undefine when admin login