From bab5bd5dd2841b4ccb6da9cd6c86d6a05da0cdbe Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Fri, 16 Dec 2022 19:05:46 +0100 Subject: [PATCH] Added mysqli_query error management for older php versions to function myq; minor changes --- web/clitools/crawlernew/crawler.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/clitools/crawlernew/crawler.php b/web/clitools/crawlernew/crawler.php index b8aa173..27beee7 100755 --- a/web/clitools/crawlernew/crawler.php +++ b/web/clitools/crawlernew/crawler.php @@ -55,6 +55,8 @@ $opts=[ 'jsonwrite'=>false, ]; +$ghtsa=[[' day',' days'],[' hour',' hours'],[' minute',' minutes'],[' second',' seconds']]; + $help='SYNOPSIS '.SNAME.' [options] @@ -82,13 +84,13 @@ OPTIONS it dead. See section «TIME SPECIFICATION» below to see how to specify time. This option gets passed to each '.CHILD.' process as is, and has no effect on '.SNAME.' itself. - DEFAULT: '.ght($opts['deadline'],[' day§ days',' hour§ hours',' minute§ minutes',' second§ seconds']).' + DEFAULT: '.ght($opts['deadline'],$ghtsa).' -o, --oldline