Changeset 799


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

Fix a few PHP Deprecated issues

Location:
trunk
Files:
3 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;
  • trunk/services/logs.php

    r767 r799  
    261261    $log = file($app->getParam('log_directory') . '/' . $log_file);
    262262
    263     if ('' != trim($search_query)) {
     263    if (isset($search_query) && '' != trim($search_query)) {
    264264        if (getFormData('search_grep')) {
    265265            $log = preg_grep('/' . str_replace('/', '\/', $search_query) . '/', $log);
Note: See TracChangeset for help on using the changeset viewer.