Falko Timme
2015-01-22 3b09eb9e89694ccbd9d22a1dd91a4811e870b1e2
- moved SQL query into if container.
1 files modified
2 ■■■ changed files
interface/web/sites/webdav_user_edit.php 2 ●●● patch | view | raw | blame | history
interface/web/sites/webdav_user_edit.php
@@ -185,9 +185,9 @@
        if ((isset($this->dataRecord["password"])) && ($this->dataRecord["password"] != '') && ($this->dataRecord["password"] != $this->dataRecord['passwordOld'])) {
            $hash = md5($this->dataRecord["username"] . ':' . $this->dataRecord["dir"] . ':' . $this->dataRecord["password"]);
            $this->dataRecord["password"] = $hash;
            $app->db->query("UPDATE webdav_user SET password = '".$this->dataRecord["password"]."' WHERE webdav_user_id = ".$this->id);
        }
        
        $app->db->query("UPDATE webdav_user SET password = '".$this->dataRecord["password"]."' WHERE webdav_user_id = ".$this->id);
    }
}