Merge pull request #9760 from frederic34/patch-19

add errors def in htmlformsms
This commit is contained in:
Laurent Destailleur 2018-10-16 20:01:41 +02:00 committed by GitHub
commit f07096ea3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
<?php <?php
/* Copyright (C) 2005-2011 Laurent Destailleur <eldy@users.sourceforge.net> /* Copyright (C) 2005-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es> * Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -37,33 +38,38 @@ class FormSms
*/ */
public $db; public $db;
var $fromname; public $fromname;
var $fromsms; public $fromsms;
var $replytoname; public $replytoname;
var $replytomail; public $replytomail;
var $toname; public $toname;
var $tomail; public $tomail;
var $withsubstit; // Show substitution array public $withsubstit; // Show substitution array
var $withfrom; public $withfrom;
var $withto; public $withto;
var $withtopic; public $withtopic;
var $withbody; public $withbody;
var $withfromreadonly; public $withfromreadonly;
var $withreplytoreadonly; public $withreplytoreadonly;
var $withtoreadonly; public $withtoreadonly;
var $withtopicreadonly; public $withtopicreadonly;
var $withcancel; public $withcancel;
var $substit=array(); public $substit=array();
var $param=array(); public $param=array();
/** /**
* @var string Error code (or message) * @var string Error code (or message)
*/ */
public $error=''; public $error='';
/**
* @var string[] Array of error strings
*/
public $errors=array();
/** /**
* Constructor * Constructor