Skip to content

bugfix pdoResources snippet, $output string to placeholders - #373

Merged
Ibochkarev merged 2 commits into
modx-pro:masterfrom
arjen-t:master
Sep 1, 2026
Merged

bugfix pdoResources snippet, $output string to placeholders#373
Ibochkarev merged 2 commits into
modx-pro:masterfrom
arjen-t:master

Conversation

@arjen-t

@arjen-t arjen-t commented Sep 22, 2023

Copy link
Copy Markdown
Contributor

Что оно делает?

Check if $ouput is an array before adding the $log result when property $toSeparatePlaceholders is set.

Зачем это нужно?

Uncaught TypeError in PHP >= 8

Связанные проблема(ы)/PR(ы)

#372

@arjen-t arjen-t changed the title bug fix pdoResources snippet, $output string to placeholders bugfix pdoResources snippet, $output string to placeholders Sep 22, 2023
Comment thread core/components/pdotools/elements/snippets/snippet.pdoresources.php
$log is always a string; when pdoPage returns string $output, guard that
before assigning ['log'] to avoid PHP 8 TypeError and keep row placeholders.
@Ibochkarev
Ibochkarev merged commit dc856ac into modx-pro:master Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug PHP 8 pdoResources snippet with property 'toSeparatePlaceholders' in combination with pdoPage

2 participants