Merge branch '7.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
6f95a7c2b1
@ -15,7 +15,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* or see http://www.gnu.org/
|
||||
*
|
||||
*
|
||||
* Get a distant dump file and load it into a mysql database
|
||||
*/
|
||||
|
||||
@ -92,7 +92,7 @@ if ($connection)
|
||||
{
|
||||
if (! @ssh2_auth_password($connection, $login, $password))
|
||||
{
|
||||
dol_syslog("Could not authenticate with username ".$login." . and password ".$password,LOG_ERR);
|
||||
dol_syslog("Could not authenticate with username ".$login." . and password ".preg_replace('/./', '*', $password),LOG_ERR);
|
||||
exit(-5);
|
||||
}
|
||||
else
|
||||
|
||||
@ -1451,7 +1451,7 @@ function dol_set_user_param($db, $conf, &$user, $tab)
|
||||
foreach ($tab as $key => $value)
|
||||
{
|
||||
if ($i > 0) $sql.=',';
|
||||
$sql.="'".$this->db->escape($key)."'";
|
||||
$sql.="'".$db->escape($key)."'";
|
||||
$i++;
|
||||
}
|
||||
$sql.= ")";
|
||||
@ -1472,7 +1472,7 @@ function dol_set_user_param($db, $conf, &$user, $tab)
|
||||
{
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."user_param(fk_user,entity,param,value)";
|
||||
$sql.= " VALUES (".$user->id.",".$conf->entity.",";
|
||||
$sql.= " '".$this->db->escape($key)."','".$db->escape($value)."')";
|
||||
$sql.= " '".$db->escape($key)."','".$db->escape($value)."')";
|
||||
|
||||
dol_syslog("functions2.lib::dol_set_user_param", LOG_DEBUG);
|
||||
$result=$db->query($sql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user