Skip to content
Permalink
Browse files

The boolean check does not quite do what we want.

We’re now checking for ‘true’, seting it as default if unset.
  • Loading branch information...
gamma committed Jun 3, 2019
1 parent ab12dfd commit 894bc325c826b10962284243801c7184f1aae95f
Showing with 2 additions and 1 deletion.
  1. +2 −1 action/aggregate.php
@@ -56,7 +56,8 @@ public function siteexport_aggregate(Doku_Event &$event)
}
}
if( !$INPUT->bool('includeSelectedVersion', true, true ) && count( $values ) > 1 ) {
$includeSelected = $INPUT->str('includeSelectedVersion', 'true', true ) === 'true';
if( !$includeSelected && count( $values ) > 1 ) {
array_pop( $values ); // Remove last entry which is the selected version, but only if more than one entry exists
}

0 comments on commit 894bc32

Please sign in to comment.
You can’t perform that action at this time.