Explorar o código

Merge pull request #1256 from Oldiesmann/release-2.1

! The user ID isn't used in the pm_labeled_messages table, causing an error
Michael Eshom %!s(int64=10) %!d(string=hai) anos
pai
achega
18cea7aa2a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/PersonalMessage.php

+ 1 - 1
Sources/PersonalMessage.php

@@ -4004,7 +4004,7 @@ function ApplyRules($all_messages = false)
 			$inserts = array();
 			// Now we insert the label info
 			foreach ($realLabels as $a_label)
-				$inserts[] = array($user_info['id'], $pm, $label);
+				$inserts[] = array($pm, $label);
 
 			$smcFunc['db_insert']('', '{db_prefix}pm_labeled_messages', array('id_pm' => 'int', 'id_label' => 'int'), $inserts, array());
 		}