]> git.mjollnir.org Git - moodle.git/commitdiff
DOn't show some notces on new install
authormoodler <moodler>
Sun, 23 Apr 2006 04:45:20 +0000 (04:45 +0000)
committermoodler <moodler>
Sun, 23 Apr 2006 04:45:20 +0000 (04:45 +0000)
enrol/authorize/db/mysql.php
enrol/authorize/db/postgres7.php

index d6e88ea8e294f59002492ffcb5ee81b9f5054745..917f0a164116ace6b7df8da19448667428dbda79 100755 (executable)
@@ -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.");
     }
index 1e006f98d78f132b31ea3b76557aaf2ee7b6ff1f..d611852dbf493a5f0a84df23d095a27dcfd77157 100644 (file)
@@ -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.");
     }