Habari\Session::remove_error PHP Метод

remove_error() публичный статический Метод

Removes a specific error from the stored errors.
public static remove_error ( string $key ) : boolean
$key string ID of the error to remove
Результат boolean True or false depending if the error was removed successfully.
    public static function remove_error($key)
    {
        if (isset($_SESSION['errors'])) {
            unset($_SESSION['errors'][$key]);
            return !isset($_SESSION['errors'][$key]) ? true : false;
        }
        return true;
    }