elastix 2.3 升级到php5.2 CDR Report 出错 patch

elastix 2.3 升级到php5.2 CDR Report 出错 patch

html/libs/paloSantoDB.class.php

163 行 (函数 fetchTable 内)
$r = $result->execute($param);
改为
if(isset($param))
{
        foreach($param as $key => $value)
         {

             if(is_int($value))
                     $paramtype = PDO::PARAM_INT;
                 elseif(is_bool($value))
                     $paramtype = PDO::PARAM_BOOL;
                 elseif(is_null($value))
                     $param = PDO::PARAM_NULL;
                 elseif(is_string($value))
                     $paramtype = PDO::PARAM_STR;
                 else
                     $paramtype = FALSE;
                    
                if($paramtype )
                     $result->bindValue($key+1,$value,$paramtype);
         }
}
$r = $result->execute();

你可能感兴趣的:(elastix 2.3 升级到php5.2 CDR Report 出错 patch)