Commit b40b51b0 by Scott

Fix event logger issue with Unicode characters

parent 952aee97
...@@ -145,10 +145,12 @@ class qa_event_logger ...@@ -145,10 +145,12 @@ class qa_event_logger
public function value_to_text($value) public function value_to_text($value)
{ {
require_once QA_INCLUDE_DIR . 'util/string.php';
if (is_array($value)) if (is_array($value))
$text = 'array(' . count($value) . ')'; $text = 'array(' . count($value) . ')';
elseif (strlen($value) > 40) elseif (qa_strlen($value) > 40)
$text = substr($value, 0, 38) . '...'; $text = qa_substr($value, 0, 38) . '...';
else else
$text = $value; $text = $value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment