Referal system refactured (and some parts fixed), wrapper function introduced:
[mailer.git] / inc / extensions / ext-grade.php
index 21fc8de95d8cb5d051bd18d47806ca0aadc9af71..c09535931cf18fdb2bc6155b307e82017abeacf5 100644 (file)
@@ -83,7 +83,7 @@ UNIQUE KEY (`grade_cash_name`)",
 `grade_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `grade_cash_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 PRIMARY KEY (`id`),
-UNIQUE KEY `grade_cash` (`grade_id`,`grade_cash_id`),
+UNIQUE KEY `grade_cash` (`grade_id`, `grade_cash_id`),
 INDEX (`grade_cash_id`)",
                        'Grade<->cash data connection');
 
@@ -95,7 +95,7 @@ INDEX (`grade_cash_id`)",
 `grade_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `grade_expired` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
 PRIMARY KEY (`id`),
-UNIQUE KEY (`userid`,`grade_id`),
+UNIQUE KEY (`userid`, `grade_id`),
 INDEX (`grade_id`)",
                        'Grade<->user connection');