Why are we doing things like this:
if (!empty($src) && array_key_exists($src, $this->loadedjscripts)) {
if ($this->loadedjscripts[$src])
return '';
Doesn’t if (isset($this->loadedjscripts[$src])) checks to see if the element exists inside the array?
Also, didn’t we agree to not process placeholders inside a @SELECT statement as it will not be supported in the upcoming versions?
$param = $modx->mergePlaceholderContent($param);
$rs = $modx->db->query("SELECT $param;");
CFs will support parameter passing