aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/version.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/version.php b/engine/lib/version.php
index f4e2ab9f6..4ffe85bc5 100644
--- a/engine/lib/version.php
+++ b/engine/lib/version.php
@@ -72,8 +72,10 @@ function upgrade_code($version, $quiet = FALSE) {
function get_version($humanreadable = false) {
global $CONFIG;
- if (include($CONFIG->path . "version.php")) {
- return (!$humanreadable) ? $version : $release;
+ if (isset($CONFIG->path)) {
+ if (include($CONFIG->path . "version.php")) {
+ return (!$humanreadable) ? $version : $release;
+ }
}
return FALSE;