From 93e47c67c7301ef2a86b23d18d0aa4ac39b3ec7f Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 12 Feb 2021 12:59:57 +0100 Subject: Fix cols() ignoring some columns, was an exception in PHP 8 --- it_pipe.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_pipe.class') diff --git a/it_pipe.class b/it_pipe.class index 2fe93db..94801c3 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -182,7 +182,7 @@ function cols($collist, $separator = "\t") $this->lines[$idx] = (object)array_combine($keys, $arr); else { - unset($this->lines[$idx]); + $this->lines[$idx] = (object)[]; foreach ($keys as $i => $key) $this->lines[$idx]->$key = $arr[$i]; } -- cgit v1.2.3