From: Brad Jorsch Date: Thu, 7 May 2015 16:21:27 +0000 (-0400) Subject: ApiHelp: Fix undefined array index reference X-Git-Tag: 1.31.0-rc.0~11471 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=fcb2e7a336edeb64c9ee4aaa25ab8b2736e1697f;p=lhc%2Fweb%2Fwiklou.git ApiHelp: Fix undefined array index reference Follows up I0219689. Change-Id: I833d8eab49a7093872a66c3bb0d314f6c7adb98c --- 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 ) {