diff --git a/inc/container.class.php b/inc/container.class.php
index c3956d33..f9cd4770 100644
--- a/inc/container.class.php
+++ b/inc/container.class.php
@@ -1145,7 +1145,7 @@ public static function showFormSubtype($params, $display = false)
// For delete number :
foreach ($tabs as &$value) {
$results = [];
- if (preg_match_all('#(.+)#', $value, $results)) {
+ if (preg_match_all('#(.+)#', (string) $value, $results)) {
$value = str_replace($results[0][0], '', $value);
}
}