From 9fcb688029dce2720abe0d1dfe0a309704e98746 Mon Sep 17 00:00:00 2001 From: pk-fr Date: Fri, 6 Mar 2020 11:34:09 +0100 Subject: [PATCH] php 7.4 compatibility : string offset access syntax with curly braces is deprecated --- include/classes/parser_extensions/my_pretty_printer.php | 4 ++-- version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/classes/parser_extensions/my_pretty_printer.php b/include/classes/parser_extensions/my_pretty_printer.php index ca3c441..96366fc 100644 --- a/include/classes/parser_extensions/my_pretty_printer.php +++ b/include/classes/parser_extensions/my_pretty_printer.php @@ -3,7 +3,7 @@ // Author: Pascal KISSIAN // Resume: http://pascal.kissian.net // -// Copyright (c) 2015-2017 Pascal KISSIAN +// Copyright (c) 2015-2020 Pascal KISSIAN // // Published under the MIT License // Consider it as a proof of concept! @@ -19,7 +19,7 @@ private function obfuscate_string($str) $result = ''; for($i=0;$i<$l;++$i) { - $result .= mt_rand(0,1) ? "\x".dechex(ord($str{$i})) : "\\".decoct(ord($str{$i})); + $result .= mt_rand(0,1) ? "\x".dechex(ord($str[$i])) : "\\".decoct(ord($str[$i])); } return $result; } diff --git a/version.php b/version.php index 874aacd..cd8a9ff 100644 --- a/version.php +++ b/version.php @@ -11,6 +11,6 @@ // Use and abuse at your own risks. //======================================================================== -$yakpro_po_version = "2.0.9"; +$yakpro_po_version = "2.0.10"; ?> \ No newline at end of file