From 1ed5c8317f1715f697ff346fb020be95a379ffd6 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 28 Dec 2018 08:34:30 +0000 Subject: [PATCH] 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 --- authentication.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/authentication.php b/authentication.php index e41c1af..48ee381 100644 --- a/authentication.php +++ b/authentication.php @@ -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 ();