From f5bf152d4dd4101679eaae6a13c5395eb15757d4 Mon Sep 17 00:00:00 2001 From: jglhelias Date: Sun, 17 Jan 2021 15:00:48 +0100 Subject: [PATCH] fix array access with curly braces deprecation --- pdoengine.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +?>