Version: 4.3.2 Reporter: Low —
I just tried to upgrade a 3.5 installation to 4.3.2 and encountered a SQL error (having Array
in the sql rather than the values). I tracked it down to the ud_4_00_00.php
file and the emancipateStatuses
method, where on line 997 and 1007 the $status
variable is set using $status[] = [...];
, which resulted in a nested array like this:
[138] => Array
(
[channel_id] => 38
[status_id] => 3
)
[139] => Array
(
[channel_id] => 38
[status_id] => 68
)
[140] => Array
(
[channel_id] => 38
[status_id] => 68
[0] => Array
(
[channel_id] => 39
[status_id] => 1
)
)
[141] => Array
(
[channel_id] => 38
[status_id] => 68
[0] => Array
(
[channel_id] => 39
[status_id] => 1
)
[1] => Array
(
[channel_id] => 39
[status_id] => 2
)
)
[142] => Array
(
[channel_id] => 40
[status_id] => 1
)
That would be (part of) the content of the $channels_statuses
variable, which is passed through to ee()->db->insert_batch()
function later on.
I removed the []
from $status[]
to resolve the issue.
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```