includes/comment.php
changeset 78 4df25dfdde63
parent 74 68469a95658d
child 86 c162ca39db8f
equal deleted inserted replaced
77:63ca29eda873 78:4df25dfdde63
    80   function process_json($json)
    80   function process_json($json)
    81   {
    81   {
    82     global $db, $session, $paths, $template, $plugins; // Common objects
    82     global $db, $session, $paths, $template, $plugins; // Common objects
    83     $parser = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
    83     $parser = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
    84     $data = $parser->decode($json);
    84     $data = $parser->decode($json);
       
    85     $data = decode_unicode_array($data);
    85     if ( !isset($data['mode']) )
    86     if ( !isset($data['mode']) )
    86     {
    87     {
    87       return $parser->encode(Array('mode'=>'error','error'=>'No mode defined!'));
    88       return $parser->encode(Array('mode'=>'error','error'=>'No mode defined!'));
    88     }
    89     }
    89     $ret = Array();
    90     $ret = Array();