From: moodler Date: Sun, 23 Apr 2006 04:45:20 +0000 (+0000) Subject: DOn't show some notces on new install X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6c3d3b0a9703fc7e154fb93fd192be9416a860aa;p=moodle.git DOn't show some notces on new install --- 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."); }