From 3766a28ae8876a497684213934dec82fa3d6b6f4 Mon Sep 17 00:00:00 2001 From: Alessandro Ferro <49845537+xfarrow@users.noreply.github.com> Date: Tue, 19 Jul 2022 14:42:41 +0200 Subject: [PATCH] bugfix --- phpxpress/phpxpress/breadcrumb.php | 11 +++++++++++ phpxpress/phpxpress/card.php | 12 ++++++++++++ phpxpress/phpxpress/dropdown.php | 12 ++++++++++++ phpxpress/phpxpress/table.php | 4 ++-- 4 files changed, 37 insertions(+), 2 deletions(-) diff --git a/phpxpress/phpxpress/breadcrumb.php b/phpxpress/phpxpress/breadcrumb.php index fb076e2..aba97f7 100644 --- a/phpxpress/phpxpress/breadcrumb.php +++ b/phpxpress/phpxpress/breadcrumb.php @@ -1,5 +1,16 @@ + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + include "include.php"; class BreadCrumb{ diff --git a/phpxpress/phpxpress/card.php b/phpxpress/phpxpress/card.php index 7f0b615..210fa81 100644 --- a/phpxpress/phpxpress/card.php +++ b/phpxpress/phpxpress/card.php @@ -1,4 +1,16 @@ + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + include "include.php"; class Card{ diff --git a/phpxpress/phpxpress/dropdown.php b/phpxpress/phpxpress/dropdown.php index bc7753d..34ae09e 100644 --- a/phpxpress/phpxpress/dropdown.php +++ b/phpxpress/phpxpress/dropdown.php @@ -1,5 +1,17 @@ + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + include "include.php"; class Dropdown{ diff --git a/phpxpress/phpxpress/table.php b/phpxpress/phpxpress/table.php index c8f8c71..e2e7eaa 100644 --- a/phpxpress/phpxpress/table.php +++ b/phpxpress/phpxpress/table.php @@ -1,7 +1,7 @@ columnCaptions)){ foreach($dataSource as &$row){ - foreach($this -> columnCaptions as $captionName){ + foreach(array_reverse($this -> columnCaptions) as $captionName){ if($is_array_of_arrays){ $row = array($captionName => null) + (array)$row; // append the already inserted captions at the beginning //$element->{$captionName} = null; // append the already inserted captions at the end