From ff82afcedfb026aeed9ecd32a5ced88f1be702de Mon Sep 17 00:00:00 2001 From: cdujeu Date: Tue, 27 Oct 2015 14:38:39 +0100 Subject: [PATCH] Wrong test for write permission --- core/src/conf/bootstrap_context.php | 2 +- core/src/conf/bootstrap_repositories.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/conf/bootstrap_context.php b/core/src/conf/bootstrap_context.php index f0dd981aa2..ab09060256 100644 --- a/core/src/conf/bootstrap_context.php +++ b/core/src/conf/bootstrap_context.php @@ -149,6 +149,6 @@ function AjaXplorer_autoload($className) } $resWriteBootstrapCache = @file_put_contents(AJXP_PLUGINS_BOOTSTRAP_CACHE, $content); } -if(!isSet($resWriteBootstrapCache) || $resWriteBootstrapCache !== true){ +if(!isSet($resWriteBootstrapCache) || $resWriteBootstrapCache !== false){ require_once(AJXP_PLUGINS_BOOTSTRAP_CACHE); } \ No newline at end of file diff --git a/core/src/conf/bootstrap_repositories.php b/core/src/conf/bootstrap_repositories.php index eac26ff59c..330fc5f8b8 100644 --- a/core/src/conf/bootstrap_repositories.php +++ b/core/src/conf/bootstrap_repositories.php @@ -185,6 +185,6 @@ } $resWriteRepoCache = @file_put_contents(AJXP_PLUGINS_REPOSITORIES_CACHE, $content); } -if(!isSet($resWriteRepoCache) || $resWriteRepoCache !== true){ +if(!isSet($resWriteRepoCache) || $resWriteRepoCache === true){ include_once(AJXP_PLUGINS_REPOSITORIES_CACHE); }