Index: includes/api/ApiMain.php =================================================================== --- includes/api/ApiMain.php (revision 110719) +++ includes/api/ApiMain.php (working copy) @@ -595,7 +595,7 @@ // Die if token required, but not provided (unless there is a gettoken parameter) $salt = $module->getTokenSalt(); - if ( $salt !== false && !isset( $moduleParams['gettoken'] ) ) { + if ( $salt !== false && !$moduleParams['gettoken'] ) { if ( !isset( $moduleParams['token'] ) ) { $this->dieUsageMsg( array( 'missingparam', 'token' ) ); } else {