auto-patch 638-dev-dev01-2024-05-14T20_44_36
This commit is contained in:
@@ -77,6 +77,13 @@ function relevanssi_index_ninja_table( $table_id ) {
|
||||
)
|
||||
);
|
||||
foreach ( $rows as $row ) {
|
||||
if ( empty( $row->value ) ) {
|
||||
continue;
|
||||
}
|
||||
$json_decoded = json_decode( $row->value );
|
||||
if ( ! is_object( $json_decoded ) ) {
|
||||
continue;
|
||||
}
|
||||
$array_values = array_map(
|
||||
function ( $value ) {
|
||||
if ( is_object( $value ) ) {
|
||||
@@ -84,7 +91,7 @@ function relevanssi_index_ninja_table( $table_id ) {
|
||||
}
|
||||
return strval( $value );
|
||||
},
|
||||
array_values( get_object_vars( json_decode( $row->value ) ) )
|
||||
array_values( get_object_vars( $json_decoded ) )
|
||||
);
|
||||
|
||||
$table_contents .= ' ' . implode( ' ', $array_values );
|
||||
|
||||
Reference in New Issue
Block a user