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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user