aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/version.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/version.php')
-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;