From fcb2e7a336edeb64c9ee4aaa25ab8b2736e1697f Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Thu, 7 May 2015 12:21:27 -0400 Subject: [PATCH] ApiHelp: Fix undefined array index reference Follows up I0219689. Change-Id: I833d8eab49a7093872a66c3bb0d314f6c7adb98c --- includes/api/ApiHelp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index c302ad1d04..27fc378c98 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -111,7 +111,7 @@ class ApiHelp extends ApiBase { if ( $cacheHelpTimeout > 0 ) { // Get help text from cache if present $cacheKey = wfMemcKey( 'apihelp', $modules[0]->getModulePath(), - $options['toc'] ? 1 : 0, + (int)!empty( $options['toc'] ), str_replace( ' ', '_', SpecialVersion::getVersion( 'nodb' ) ) ); $cached = $wgMemc->get( $cacheKey ); if ( $cached ) { -- 2.20.1