authentication : do not try to log an array like a string

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4812 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2018-12-28 08:34:30 +00:00
parent d4e913d00e
commit 1ed5c8317f

View File

@@ -334,7 +334,13 @@ class authentication
foreach ($serversParam as $param=>$value)
{
if ($this->debug)
echo "Add param '$param' with value '$value' to auth$method\n";
{
if (is_array ($value))
echo "Add param '$param' to auth$method : ".
var_export ($value, true)."\n";
else
echo "Add param '$param' with value '$value' to auth$method\n";
}
$authmethod->$param = $value;
}
$authmethod->connect ();