Вход Регистрация
Файл: chatigniter v2/application/modules/chat/helpers/json_error_helper.php
Строк: 17
<?php

if (!defined('BASEPATH'))
    exit(
'No direct script access allowed');

function 
json_errors()
{
    
// Ok, gotta think of a better name for this function. It doesn't return 
    // json itself but is called from something which will.
    
    
$return = array();
    
    foreach (
array_keys($_POST) as $key)
    {
        if (
form_error($key))
        {
            
$return[$key] = form_error($key);
        }
    }
    
    return 
$return;
}

?>
Онлайн: 1
Реклама