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
This commit is contained in:
2017-07-25 11:08:57 +00:00
parent cfd9f99518
commit 50062a4d1c

View File

@@ -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);