1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Fix TypeError in Util class

TypeError: str_replace() expects parameter 3 to be string or array, int given

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth
2019-12-17 22:37:14 -03:00
parent bed84bbf58
commit 4cbcf4889b

View File

@@ -900,7 +900,7 @@ class Util
// '0' is also empty for php :-(
if (strlen((string) $a_name) > 0 && $a_name !== '*') {
return '`' . str_replace('`', '``', $a_name) . '`';
return '`' . str_replace('`', '``', (string) $a_name) . '`';
}
return $a_name;