From 50062a4d1cf32a8ca817edbf17755ad1d20c07c0 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 25 Jul 2017 11:08:57 +0000 Subject: [PATCH] dblayeroo: if displayAdd is empty, remove all the previous defined displayed columns git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3829 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayeroo.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dblayeroo.php b/dblayeroo.php index f78116b..2317662 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -1557,6 +1557,9 @@ class dblayeroo if (count ($aliasNames) && count ($aliasNames) !== count ($columnNames)) $this->DBException ( "The number of aliasNames are not the same as the number of columns"); + // If there is no provided names, reset all the defined ones + if (count ($columnNames) === 0) + $this->displayColumn = array (); foreach ($columnNames as $nb => $display) { $display = $name = trim ($display);