diff --git a/pdoengine.class.php b/pdoengine.class.php index 204faf0..eacf465 100644 --- a/pdoengine.class.php +++ b/pdoengine.class.php @@ -785,10 +785,10 @@ private function replace_variables_with_placeholders($matches) { $param = trim($param); //remove the quotes at the end and the beginning - if (in_array($param{strlen($param)-1}, array("'",'"'))) { + if (in_array($param[strlen($param)-1], array("'",'"'))) { $param = substr($param,0,-1) ;//end } - if (in_array($param{0}, array("'",'"'))) { + if (in_array($param[0], array("'",'"'))) { $param = substr($param, 1); //start } //$this->extracted_variables[] = $param; @@ -1378,4 +1378,4 @@ function __construct($data = null,&$node= null) { } } } -?> \ No newline at end of file +?>