From 6ccad32e53df0b30d5d5a063744bf19770289178 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 18 Feb 2011 15:20:29 +0100 Subject: [PATCH] Only stores required profile modifications. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/page.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index dd20de4..2bc4c52 100644 --- a/modules/profile/page.inc.php +++ b/modules/profile/page.inc.php @@ -306,7 +306,7 @@ abstract class ProfilePage implements PlWizardPage $user = S::user(); if ($owner->isActive()) { foreach ($changedFields as $field => $values) { - if (!is_null($field)) { + if (in_array($field, Profile::$descriptions)) { XDB::execute('INSERT INTO profile_modifications (pid, uid, field, oldText, newText, type, timestamp) VALUES ({?}, {?}, {?}, {?}, {?}, {?}, NOW()) ON DUPLICATE KEY UPDATE uid = VALUES(uid), oldText = IF(VALUES(type) != type, VALUES(oldText), oldText), -- 2.1.4