Adding existence check for $_GET['force'] before accessing the index to prevent

throwing notices.


git-svn-id: svn://10.0.0.236/trunk@235951 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
morgamic%mozilla.com 2007-09-13 19:37:52 +00:00
parent 09d662dbdc
commit 72248fc823

View File

@ -56,7 +56,7 @@ $xml = new Xml();
// Check to see if the user is explicitly requesting an update. If they are,
// skip throttling. If they aren't, and throttling is enabled, randomly serve
// updates based on the configured random seed.
if ( $_GET['force']!=1 &&
if ( (empty($_GET['force']) || $_GET['force']!=1) &&
defined('THROTTLE') &&
THROTTLE &&
defined('THROTTLE_LEVEL') &&