esotalk / esoTalk

Fat-free forum software.
GNU General Public License v2.0
1.47k stars 237 forks source link

Using $this when not in object context in ../core/lib/ETSQLQuery.class.php(666) : regexp code on line 1 #337

Closed javascript5 closed 9 years ago

javascript5 commented 10 years ago

Using $this when not in object context in ../core/lib/ETSQLQuery.class.php(666) : regexp code on line 1

// Substitute in bound parameter values.
$query = preg_replace('/(:[A-Za-z0-9_]+)/e', 'array_key_exists("$1", $this->parameters)
    ? ET::$database->escapeValue($this->parameters["$1"][0], $this->parameters["$1"][1])
    : "$1"', $query);

return $query;}
jgknight commented 9 years ago

I'm not seeing what the issue is here. Reopen or comment if you actually have something broken.