Changeset 799 for trunk/lib


Ignore:
Timestamp:
Aug 9, 2023 7:07:14 PM (9 months ago)
Author:
anonymous
Message:

Fix a few PHP Deprecated issues

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/TemplateGlue.inc.php

    r772 r799  
    163163 * @param  bool   $sort          Sort the output.
    164164 */
    165 function printSetCheckboxes($db_table, $db_col, $preselected, $columns=1, $flag=null, $sort)
     165function printSetCheckboxes($db_table, $db_col, $preselected, $columns=1, $flag=null, $sort=false)
    166166{
    167167    ?>
  • trunk/lib/Validator.inc.php

    r770 r799  
    401401        }
    402402
    403         if (false === strtotime($val)) {
     403        if (!$val || false === strtotime($val)) {
    404404            $app->logMsg(sprintf('%s (line %s) failed: %s', __METHOD__, __LINE__, getDump($val)), $type, $file, $line);
    405405            return false;
Note: See TracChangeset for help on using the changeset viewer.