summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_hardware.php
diff options
context:
space:
mode:
Diffstat (limited to 'pts-core/functions/pts-functions_system_hardware.php')
-rw-r--r--pts-core/functions/pts-functions_system_hardware.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_system_hardware.php b/pts-core/functions/pts-functions_system_hardware.php
index 05ab514..933dc26 100644
--- a/pts-core/functions/pts-functions_system_hardware.php
+++ b/pts-core/functions/pts-functions_system_hardware.php
@@ -378,7 +378,7 @@ function hw_sys_memory_string()
$mem_type = substr($mem_type, 0, $cut);
}
- if(preg_replace("/[^a-zA-Z0-9s]/", "", $mem_type) == $mem_type)
+ if(pts_remove_chars($mem_type, true, false, true) == $mem_type)
{
$mem_prefix = $mem_type;
}