From 59a95aadd202d794325a20729a8f68dcfa0443fe Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sat, 26 Jan 2013 16:23:33 +0100 Subject: [PATCH] Fixed server crash --- src/classes/utils/Utils.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/classes/utils/Utils.php b/src/classes/utils/Utils.php index 24e6f967..6f0bc92a 100644 --- a/src/classes/utils/Utils.php +++ b/src/classes/utils/Utils.php @@ -95,6 +95,9 @@ class Utils extends Thread{ } public static function printable($str){ + if(!is_string($str)){ + return gettype($str); + } return preg_replace('#([^\x20-\x7E])#', '.', $str); }