1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-05 10:17:30 +01:00

Correzione contatore di ricorsione

This commit is contained in:
Thomas Zilio 2018-02-16 09:41:28 +01:00
parent d4fd77859b
commit 6ecee8cb5e

View File

@ -104,7 +104,7 @@ class HTMLBuilder
// Ricorsione
if ($depth < self::$max_recursion) {
$result = self::replace($result, $depth++);
$result = self::replace($result, $depth + 1);
}
$html = str_replace($value, !empty($result) ? $result : $value, $html);
@ -119,7 +119,7 @@ class HTMLBuilder
// Ricorsione
if ($depth < self::$max_recursion) {
$result = self::replace($result, $depth++);
$result = self::replace($result, $depth + 1);
}
$html = str_replace($value, !empty($result) ? $result : $value, $html);