Merge pull request #7336 from hregis/6.0_bug3

Fix: avoid "Uncaught Error: [] operator not supported for strings"
This commit is contained in:
Laurent Destailleur 2017-09-07 18:04:08 +02:00 committed by GitHub
commit faaebbf5e1

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* or see http://www.gnu.org/
*
*
* $elementype must be defined.
*/
@ -25,6 +25,7 @@
$maxsizestring=255;
$maxsizeint=10;
$mesg=array();
$extrasize=GETPOST('size','int');
$type=GETPOST('type','alpha');