Issue Bug Closed

#60457Fix result value of DatabaseConnection::sql_free_result()

Stefano Kowalke 07/22/14, 12:52 updated 10/02/18, 11:52

Description

    public function sql_free_result($res) {
        if ($this->debug_check_recordset($res) && is_object($res)) {
            return $res->free();
        } else {
            return FALSE;
        }
    }

In case of success the current implementation returns the result of $res->free(). Unfortunately free() doesn’t return anything.

Solution:
Return TRUE in case of success

Reviews 2