From 6c3d3b0a9703fc7e154fb93fd192be9416a860aa Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 23 Apr 2006 04:45:20 +0000 Subject: [PATCH] DOn't show some notces on new install --- enrol/authorize/db/mysql.php | 2 +- enrol/authorize/db/postgres7.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/enrol/authorize/db/mysql.php b/enrol/authorize/db/mysql.php index d6e88ea8e2..917f0a1641 100755 --- a/enrol/authorize/db/mysql.php +++ b/enrol/authorize/db/mysql.php @@ -18,7 +18,7 @@ function enrol_authorize_upgrade($oldversion=0) { execute_sql("ALTER TABLE `{$CFG->prefix}enrol_authorize` ADD INDEX userid(userid)", false); } - if ($oldversion < 2005071602) { + if ($oldversion && $oldversion < 2005071602) { notify("If you are using the authorize.net enrolment plugin for credit card handling, please ensure that you have turned loginhttps ON in Admin >> Variables >> Security."); } diff --git a/enrol/authorize/db/postgres7.php b/enrol/authorize/db/postgres7.php index 1e006f98d7..d611852dbf 100644 --- a/enrol/authorize/db/postgres7.php +++ b/enrol/authorize/db/postgres7.php @@ -19,7 +19,7 @@ function enrol_authorize_upgrade($oldversion=0) { // Authorize module was installed before. Upgrades must be applied to SQL file. - if ($oldversion < 2005071602) { + if ($oldversion && $oldversion < 2005071602) { notify("If you are using the authorize.net enrolment plugin for credit card handling, please ensure that you have turned loginhttps ON in Admin >> Variables >> Security."); } -- 2.39.5