diff --git a/migrations/v210_beta1.php b/migrations/v210_beta1.php index 4af1f2e8..2acb1028 100644 --- a/migrations/v210_beta1.php +++ b/migrations/v210_beta1.php @@ -183,6 +183,7 @@ class v210_beta1 extends \phpbb\db\migration\migration $sql = 'SELECT * FROM ' . $this->table_prefix . 'portal_config'; $result = $this->db->sql_query_limit($sql, 1); $row = $this->db->sql_fetchrow($result); + $this->db->sql_freeresult($result); if (!empty($row)) { return; @@ -204,6 +205,7 @@ class v210_beta1 extends \phpbb\db\migration\migration { $groups_ary[$row['group_name']] = $row['group_id']; } + $this->db->sql_freeresult($result); // set portal config $this->set_portal_config('board3_menu_array_1', serialize(array( diff --git a/modules/attachments.php b/modules/attachments.php index 45614527..5c0b1103 100644 --- a/modules/attachments.php +++ b/modules/attachments.php @@ -187,6 +187,7 @@ class attachments extends module_base 'title' => $row['extension'], ); } + $this->db->sql_freeresult($result); $selected = $this->get_selected_filetypes($module_id);