]> git.mjollnir.org Git - s9y.git/commitdiff
* Do not store an unnecessary config value for check_password
authorgarvinhicking <garvinhicking>
Wed, 14 Feb 2007 14:06:41 +0000 (14:06 +0000)
committergarvinhicking <garvinhicking>
Wed, 14 Feb 2007 14:06:41 +0000 (14:06 +0000)
      and password user properties. Thanks to jenzo from the forums!
      (garvinhicking)

docs/NEWS
include/functions_config.inc.php

index 30a21cdce3cc7d9c8bc053b9323a11579a7a077e..61bbd515d8aeb26acfd95063b56222021e921f04 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,10 @@
 Version 1.2 ()
 ------------------------------------------------------------------------
 
+    * Do not store an unnecessary config value for check_password
+      and password user properties. Thanks to jenzo from the forums!
+      (garvinhicking)
+      
     * Update spamblock plugin to update a .htaccess file with DENY
       rules based on recent spammer IPs. EXPERIMENTAL.
 
index a49f8cf2362834e20e16b977e7dd58e26088570a..b64582988cc94db2cffa3e91af71a0cd47880375 100644 (file)
@@ -97,6 +97,11 @@ function serendipity_set_config_var($name, $val, $authorid = 0) {
     global $serendipity;
 
     serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}config where name='" . serendipity_db_escape_string($name) . "' AND authorid = " . (int)$authorid);
+
+    if ($name == 'password' || $name == 'check_password') {
+        return;
+    }
+
     $r = serendipity_db_insert('config', array('name' => $name, 'value' => $val, 'authorid' => $authorid));
 
     if ($authorid === 0 || $authorid === $serendipity['authorid']) {