Fix: activation e-mails were signed by Anonymous :-)
authorDan
Thu, 13 Sep 2007 08:28:11 -0400
changeset 131 f59a8881f7e9
parent 130 c4ce1640e1f4
child 132 0ae1b281a884
Fix: activation e-mails were signed by Anonymous :-)
includes/sessions.php
--- a/includes/sessions.php	Wed Sep 12 00:18:32 2007 -0400
+++ b/includes/sessions.php	Thu Sep 13 08:28:11 2007 -0400
@@ -1493,7 +1493,7 @@
   function send_activation_mail($u, $actkey = false)
   {
     global $db, $session, $paths, $template, $plugins; // Common objects
-    $q = $this->sql('SELECT username,email FROM '.table_prefix.'users WHERE user_id=1 OR user_level=' . USER_LEVEL_ADMIN . ' ORDER BY user_id ASC;');
+    $q = $this->sql('SELECT username,email FROM '.table_prefix.'users WHERE user_id=2 OR user_level=' . USER_LEVEL_ADMIN . ' ORDER BY user_id ASC;');
     $un = $db->fetchrow();
     $admin_user = $un['username'];
     $q = $this->sql('SELECT username,activation_key,account_active,email FROM '.table_prefix.'users WHERE username=\''.$db->escape($u).'\';');