From 0cc991eb51839f70308ed77d08b06350508141c1 Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 22 Sep 2016 21:18:18 +1000 Subject: [PATCH] ckdb - remove unnecessary alert processing --- src/ckdb.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/ckdb.php b/src/ckdb.php index b0c1a771..9ae4b1a9 100644 --- a/src/ckdb.php +++ b/src/ckdb.php @@ -21,7 +21,7 @@ function getsock2($fun, $tmo) # function msg($line, $tmo = false) { - global $fld_sep, $val_sep, $alrts; + global $fld_sep, $val_sep; $fun = 'stdin'; $ret = false; @@ -34,21 +34,6 @@ function msg($line, $tmo = false) socket_close($socket); } - $al = $fld_sep . 'alert' . $val_sep; - if ($ret !== false and strpos($ret, $al) !== false) - { - $all = explode($al, $ret); - $ret = $all[0]; - $skip = true; - foreach ($all as $lrt) - { - if ($skip) - $skip = false; - else - // Discard duplicates - $alrts[preg_replace("/[\n\r]*$/",'',$lrt)] = 1; - } - } return $ret; } #