From 4fc3c5ed9c0ad2946ab61bbfc50825b2090e0b2f Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 11 Oct 2024 11:24:07 +0200 Subject: [PATCH] lib/php/db/field.php --- lib/php/db/field.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/php/db/field.php b/lib/php/db/field.php index bbd701b7..686f3100 100644 --- a/lib/php/db/field.php +++ b/lib/php/db/field.php @@ -381,8 +381,6 @@ return false; public function bindParam(&$sth,$value,$name=null) { # See: http://php.net/manual/en/pdostatement.bindparam.php if ($name === null) $name = ':'.$this->name; -#debug($this->name . " | $name | $value | $this->type | " . $this->size()."
"); -# NB 11.04.16 if (strpos($this->type,'float') !== false) { if ($this->numeric() and strpos($this->type,'int') === false) { $value = strval($value); return $sth->bindParam($name, $value, PDO::PARAM_STR); @@ -391,7 +389,6 @@ return false; # Passing null to parameter #4 ($maxLength) of type int is deprecatedassing null to parameter #4 ($maxLength) of type int is deprecated if ($size === null) $size = 0; return $sth->bindParam($name, $value, $this->type2pdo($this->type), $size); -// NB 27.07.15 return $sth->bindParam($name, $value, $this->type2pdo($value)); } public function out($value,$html_escape=false) { -- 2.47.3