From 72a2e368c71cad39187d10f6ddaa69d6e8f4a8ba Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 12 Apr 2014 18:58:08 +0200 Subject: Add foreign keys to database Changing the referrer value for the root admin from 0 to NULL to make the foreign key check work. Signed-off-by: Florian Pritz --- application/controllers/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/controllers/user.php') diff --git a/application/controllers/user.php b/application/controllers/user.php index 7ebaa0b68..b4e2613ac 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -331,7 +331,7 @@ class User extends MY_Controller { $admininfo = $this->db->query(" SELECT email FROM users - WHERE referrer = 0 + WHERE referrer is null ORDER BY id asc LIMIT 1 ")->row_array(); -- cgit v1.2.3-24-g4f1b