aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Tools.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/poche/Tools.class.php')
-rwxr-xr-xinc/poche/Tools.class.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php
index e5e150cd..d84850cf 100755
--- a/inc/poche/Tools.class.php
+++ b/inc/poche/Tools.class.php
@@ -233,6 +233,27 @@ final class Tools
233 } 233 }
234 234
235 /** 235 /**
236 * UTF-8 encode array of string
237 *
238 * @param $data
239 */
240 public static function utf8ize($data)
241 {
242 if (is_array($data))
243 {
244 foreach ($data as $k => $v)
245 {
246 $data[$k] = self::utf8ize($v);
247 }
248 }
249 else if (is_string ($data))
250 {
251 return utf8_encode($data);
252 }
253 return $data;
254 }
255
256 /**
236 * Create new line in log file 257 * Create new line in log file
237 * 258 *
238 * @param $message 259 * @param $message