From c895beb35f85f0a374653fdae4b864811442ecd5 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Mon, 30 Sep 2019 15:57:23 +0900 Subject: [PATCH] IO: reset field names update instead of set to array, set to null as we fully reset this entry --- www/lib/CoreLibs/DB/IO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/lib/CoreLibs/DB/IO.php b/www/lib/CoreLibs/DB/IO.php index 7bc748ad..75c63834 100644 --- a/www/lib/CoreLibs/DB/IO.php +++ b/www/lib/CoreLibs/DB/IO.php @@ -1156,7 +1156,7 @@ class IO extends \CoreLibs\Basic // return row, if last && reset, then unset the hole md5 array if (!$return && ($reset == 1 || $reset == 3) && $this->cursor_ext[$md5]['pos']) { // unset only the field names here of course - $this->cursor_ext[$md5]['field_names'] = array(); + $this->cursor_ext[$md5]['field_names'] = null; $this->cursor_ext[$md5]['pos'] = 0; } elseif (!$return && $reset == 2 && $this->cursor_ext[$md5]['pos']) { // at end of read reset pos & set cursor to 1 (so it does not get lost in session transfer)