sedteam / Seditio

Seditio CMS Source

Home Page:https://seditio.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uploader.page.add.tags.php bug

SeditioCMS opened this issue · comments

$first_thumb_array = isset($$newpageextra) ? trim($$newpageextra) : '';

$$ two

commented

This is not a bug, but the formation of a variable from a string.
https://www.php.net/manual/en/language.variables.variable.php

ok thanks

In order to use variable variables with arrays, you have to resolve an ambiguity problem. That is, if you write $$a[1] then the parser needs to know if you meant to use $a[1] as a variable, or if you wanted $$a as the variable and then the [1] index from that variable. The syntax for resolving this ambiguity is: ${$a[1]} for the first case and ${$a}[1] for the second.