Skip to content

Commit

Permalink
1.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman-fx authored Jun 2, 2023
1 parent c4203d4 commit ead563d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

Changelog
---------
<b>Version 1.1.10</b>
- Bugfixing (Aufbereitung MBlock-Werte)

<b>Version 1.1.9</b>
- Cookieverwendung optimiert
- Codeoptimierungen
Expand Down
13 changes: 7 additions & 6 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/*
Redaxo-Addon Gridblock
Boot (weitere Konfigurationen & Einbindung)
v1.0.7
by Falko Müller @ 2021-2022 (based on 0.1.0-dev von bloep)
v1.1.10
by Falko Müller @ 2021-2023 (based on 0.1.0-dev von bloep)
*/

//Variablen deklarieren
Expand Down Expand Up @@ -39,6 +39,7 @@

$values = isset($_POST['REX_INPUT_VALUE']) ? $_POST['REX_INPUT_VALUE'] : null;


if (is_array($values)):
foreach ($values as $colID => $slices):

Expand All @@ -51,18 +52,18 @@
/*
echo "\nSlice: $uID\n";
print_r($data);
*/
*/

foreach ($data['VALUE'] as $i => $value):
//Eingabedaten durchlaufen und _MBLOCK korrigieren
if (strrpos($i, '_MBLOCK') !== false):
$id = str_replace('_MBLOCK', '', $i);
$id = str_replace('_MBLOCK', '', $i);

$values[$colID][$uID]['VALUE'][$id] = (isset($values[$colID][$uID]['VALUE'][$id]) ? $values[$colID][$uID]['VALUE'][$id] + $value : $value);
$values[$colID][$uID]['VALUE'][$id] = (isset($values[$colID][$uID]['VALUE'][$id]) && !is_array($value)) ? $values[$colID][$uID]['VALUE'][$id] + $value : $value; //$id + $val nur durchführen, wenn kein array
unset($values[$colID][$uID]['VALUE'][$i]);
endif;
endforeach;

endif;
endforeach;
endif;
Expand Down
2 changes: 1 addition & 1 deletion package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Alle hier gesetzten Werte können über $addon->getProperty($key) abgefragt werden

package: gridblock #Pflichtfeld
version: '1.1.9' #Pflichtfeld
version: '1.1.10' #Pflichtfeld
author: Falko Müller
supportpage: https://github.com/iceman-fx/gridblock

Expand Down

0 comments on commit ead563d

Please sign in to comment.