Fix PHP Notice: Array to string conversion in validate.inc.php
authorNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Sun, 29 Dec 2013 11:03:52 +0000 (12:03 +0100)
committerNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Sun, 29 Dec 2013 11:03:52 +0000 (12:03 +0100)
commit1b5f4ba2b95367fcd376ae3847e002b915409732
tree01d68b2e420ab5b277ff02e4c06c129cd1a73c30
parentee2a051ef581339d4e1ae613c31375cff4687101
Fix PHP Notice: Array to string conversion in validate.inc.php

Validate::iterate() builds a SQL query that involves an array of WHERE filters.
When this array is empty, it was incorrectly kept as is, thus triggering a PHP
Notice.

Note: this error is not fatal as the following statement is a valid SQL query:
SELECT data, DATE_FORMAT(stamp, "%Y%m%d%H%i%s") FROM requests Array ORDER BY stamp;
include/validations.inc.php