summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--add_prebuild.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/add_prebuild.php b/add_prebuild.php
index 2c0e9fe..c213e19 100644
--- a/add_prebuild.php
+++ b/add_prebuild.php
@@ -92,10 +92,10 @@ if( $itemIds ) {
);
foreach( $klidRows as $r ) { $klidMap[$r['content_id']] = $r['xkey']; }
}
-$itemListJson = json_encode( array_map(
+$itemListJson = json_encode( array_values( array_map(
fn( $i ) => [ 'id' => (int)$i['content_id'], 'text' => $i['title'], 'klid' => $klidMap[$i['content_id']] ?? '' ],
$assemblyList
-) );
+) ) );
$preselectTitle = '';
if( $preselect ) {
foreach( $assemblyList as $item ) {