diff --git a/include/class.config.php b/include/class.config.php
index 8ff0056184713797a87e92871a272e5c953bb39e..e293908d61637c923ba1c9cb4120b210065b0cc2 100644
--- a/include/class.config.php
+++ b/include/class.config.php
@@ -77,6 +77,11 @@ class Config {
         return THIS_VERSION;
     }
 
+    //Used to detect version prior to 1.7 (useful during upgrade)
+    function getDBVersion() {
+        return $this->config['ostversion'];
+    }
+
     function getSchemaSignature() {
 
         if($this->config['schema_signature'])