Skip to content

Commit b8d2a77

Browse files
author
Carlos Garcia
committed
Corregidos los problemas al reemplazar valores de variables numéricas.
1 parent b816664 commit b8d2a77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/Lib/Email/MailNotifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of FacturaScripts
4-
* Copyright (C) 2022-2023 Carlos Garcia Gomez <carlos@facturascripts.com>
4+
* Copyright (C) 2022-2025 Carlos Garcia Gomez <carlos@facturascripts.com>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU Lesser General Public License as
@@ -37,7 +37,7 @@ class MailNotifier
3737
public static function getText(string $text, array $params): string
3838
{
3939
foreach ($params as $key => $value) {
40-
if (is_string($value)) {
40+
if (is_string($value) || is_numeric($value)) {
4141
$text = str_replace('{' . $key . '}', $value, $text);
4242
}
4343
}

0 commit comments

Comments
 (0)