8
Quote:
I don't remember how block options were stored in 2.0.x, but in 2.2.4 they're stored as a serialized array.
I beleive they were stored like this in 2.0.x also. The problem deeper I think. Here is an example. Let's suppose this is the options for a block :
$options = array(0 => '150', 1 => '5');
Let's suppose this block has a third option which is an array. The options array will then look like this :
Quote:
$options = array(0 => '150', 1 => '5', 2, => array(0 => '1', 1 => '2'));
In 2.0.x, I beleive that each option within the $options array was check to know if it was itself an array. If so, then the option was
implode and transformed into a string. So the actual $options saved in the database was a serialized version of :
Quote:
$options = array(0 => '150', 1 => '5', 2, => '1, 2');
This does not seems to happen in 2.2.x. If we take the same example, in 2.2.x, the $options saved in the database would be this :
Quote:
$options = array(0 => '150', 1 => '5', 2, => 'array');
Am I explaining myself correctly ? What am I missing ?
Cheers !