From 1724b7276b8839747b0247ba67c6cef269c6fe7d Mon Sep 17 00:00:00 2001 From: Sergey Tsalkov Date: Fri, 25 Jun 2021 23:48:44 +0000 Subject: [PATCH] cleanup MeekroDBWalk a bit --- db.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/db.class.php b/db.class.php index ab18d45..ed79742 100644 --- a/db.class.php +++ b/db.class.php @@ -936,7 +936,6 @@ class MeekroDB { class MeekroDBWalk { protected $mysqli; protected $result; - protected $freed; function __construct(MySQLi $mysqli, $result) { $this->mysqli = $mysqli; @@ -951,7 +950,6 @@ class MeekroDBWalk { } function free() { - if ($this->freed) return; if (! ($this->result instanceof MySQLi_Result)) return; $this->result->free(); @@ -960,7 +958,7 @@ class MeekroDBWalk { if ($result = $this->mysqli->use_result()) $result->free(); } - $this->freed = true; + $this->result = null; } function __destruct() {