Skip to content

Commit

Permalink
Merge branch 'MDL-53256-m30' of https://github.com/micaherne/moodle i…
Browse files Browse the repository at this point in the history
…nto MOODLE_30_STABLE
  • Loading branch information
stronk7 committed Apr 4, 2016
2 parents 63a1a28 + ad23f18 commit f80a695
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cache/classes/config.php
Expand Up @@ -330,7 +330,11 @@ protected function include_configuration() {
if (!file_exists($cachefile)) {
throw new cache_exception('Default cache config could not be found. It should have already been created by now.');
}
include($cachefile);

if (!include($cachefile)) {
throw new cache_exception('Unable to load the cache configuration file');
}

if (!is_array($configuration)) {
throw new cache_exception('Invalid cache configuration file');
}
Expand Down

0 comments on commit f80a695

Please sign in to comment.