<ul><li>accounts.php: Fixed switchOrg URL — &rid"+strprm was missing the = sign, producing &rid0 instead of &rid=0</li><li>gbl_rids_ridacctkey.php: Initialized $rid = $_SESSION["rid"] ?? 0 at top scope so it is always defined even when no ridacctkey is in the request (was causing Undefined variable $rid warnings on every normal page load across index.php, sidebar.main.php, menu_administration.php)</li><li>gbl_rids_ridacctkey.php: Added null guard on $_REQUEST["rid"] and $_REQUEST["rids"] inside ridacctkey block</li><li>gbl_rids_ridacctkey.php: Added ?? null guard on $ridaccount["company_type"] assignment to $_SESSION["company_type"]</li><li>accounts.php: Added ?? '' guard on $cvalue["acct_keyfk"] in commented-out delete button (PHP still processes tags inside HTML comments)</li></ul>