PMA\libraries\RecentFavoriteTable::remove PHP Method

remove() public method

Remove favorite tables.
public remove ( string $db, string $table ) : true | Message
$db string database name where the table is located
$table string table name
return true | Message True if success, Message if not
    public function remove($db, $table)
    {
        $table_arr = array();
        $table_arr['db'] = $db;
        $table_arr['table'] = $table;
        foreach ($this->_tables as $key => $value) {
            if ($value['db'] == $db && $value['table'] == $table) {
                unset($this->_tables[$key]);
            }
        }
        if ($this->_getPmaTable()) {
            return $this->saveToDb();
        }
        return true;
    }