From bc4381aadad40ade636f85e7ed0a831b3bcd8df1 Mon Sep 17 00:00:00 2001 From: jtate Date: Sat, 1 Oct 2005 02:55:17 +0000 Subject: [PATCH] Fix adding a user so that it doesn't spew when trying to update column 'check_password' in the _authors table. --- include/functions_config.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/functions_config.inc.php b/include/functions_config.inc.php index d8603d9..7d763aa 100644 --- a/include/functions_config.inc.php +++ b/include/functions_config.inc.php @@ -116,6 +116,9 @@ function serendipity_set_user_var($name, $val, $authorid, $copy_to_s9y = true) { // Special case for inserting a password switch($name) { + case 'check_password': + //Skip this field. It doesn't need to be stored. + return; case 'password': if (empty($val)) { return; @@ -1196,4 +1199,4 @@ function serendipity_setFormToken($type = 'form') { } } -/* vim: set sts=4 ts=4 expandtab : */ \ No newline at end of file +/* vim: set sts=4 ts=4 expandtab : */ -- 2.39.5