|
@@ 401-404 (lines=4) @@
|
| 398 |
|
if ( is_array( $unserialized_value ) ) { |
| 399 |
|
if ( isset( $unserialized_value['value'] ) ) { |
| 400 |
|
// value is a key=>value array - save each property separately |
| 401 |
|
foreach ( $unserialized_value as $value_key => $value_item ) { |
| 402 |
|
$key = $this->key_toolset->get_storage_key( false, $hierarchy, $hierarchy_index, 0, $value_key ); |
| 403 |
|
$storage_array[ $key ] = $value_item; |
| 404 |
|
} |
| 405 |
|
} else { |
| 406 |
|
// value is a simple array - save each value separately |
| 407 |
|
$i = 0; |
|
@@ 408-412 (lines=5) @@
|
| 405 |
|
} else { |
| 406 |
|
// value is a simple array - save each value separately |
| 407 |
|
$i = 0; |
| 408 |
|
foreach ( $unserialized_value as $value_item ) { |
| 409 |
|
$key = $this->key_toolset->get_storage_key( false, $hierarchy, $hierarchy_index, $i, Value_Set::VALUE_PROPERTY ); |
| 410 |
|
$storage_array[ $key ] = $value_item; |
| 411 |
|
$i++; |
| 412 |
|
} |
| 413 |
|
} |
| 414 |
|
} else if ( $unserialized_value === null ) { |
| 415 |
|
// no value found - add a keepalive key |