From: jtate Date: Sat, 1 Oct 2005 02:55:17 +0000 (+0000) Subject: Fix adding a user so that it doesn't spew when trying to update column 'check_passwor... X-Git-Tag: 0.9~104 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bc4381aadad40ade636f85e7ed0a831b3bcd8df1;p=s9y.git Fix adding a user so that it doesn't spew when trying to update column 'check_password' in the _authors table. --- 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 : */