From 9e3e2938fcc184f404885d38bae76e9d0f717d31 Mon Sep 17 00:00:00 2001 From: ethem Date: Mon, 27 Mar 2006 09:50:39 +0000 Subject: [PATCH] First time install detection. --- enrol/authorize/db/mysql.php | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/enrol/authorize/db/mysql.php b/enrol/authorize/db/mysql.php index e22f3e48592..05cb576a674 100755 --- a/enrol/authorize/db/mysql.php +++ b/enrol/authorize/db/mysql.php @@ -1,15 +1,18 @@ -dirroot/enrol/authorize/db/mysql.sql"); +MetaColumns($CFG->prefix . 'enrol_authorize')) { + $installfirst = true; + } + + if ($oldversion == 0 || !empty($installfirst)) { + modify_database("$CFG->dirroot/enrol/authorize/db/mysql.sql"); } if ($oldversion < 2005071601) { @@ -27,7 +30,7 @@ function authorize_upgrade($oldversion=0) { handling, please ensure that you have turned loginhttps ON in Admin >> Variables >> Security."); } - return $result; -} - -?> + return $result; +} + +?>