|
@@ 359-362 (lines=4) @@
|
| 356 |
|
if ( is_array( $unserialized_value ) ) { |
| 357 |
|
if ( isset( $unserialized_value['value'] ) ) { |
| 358 |
|
// value is a key=>value array - save each property separately |
| 359 |
|
foreach ( $unserialized_value as $value_key => $value_item ) { |
| 360 |
|
$key = $this->key_toolset->get_storage_key( false, $hierarchy, $hierarchy_index, 0, $value_key ); |
| 361 |
|
$storage_array[ $key ] = $value_item; |
| 362 |
|
} |
| 363 |
|
} else { |
| 364 |
|
// value is a simple array - save each value separately |
| 365 |
|
$i = 0; |
|
@@ 366-370 (lines=5) @@
|
| 363 |
|
} else { |
| 364 |
|
// value is a simple array - save each value separately |
| 365 |
|
$i = 0; |
| 366 |
|
foreach ( $unserialized_value as $value_item ) { |
| 367 |
|
$key = $this->key_toolset->get_storage_key( false, $hierarchy, $hierarchy_index, $i, Value_Set::VALUE_PROPERTY ); |
| 368 |
|
$storage_array[ $key ] = $value_item; |
| 369 |
|
$i++; |
| 370 |
|
} |
| 371 |
|
} |
| 372 |
|
} else if ( $unserialized_value === null ) { |
| 373 |
|
// no value found - add a keepalive key |