roundcubemail/program/lib/Roundcube/rcube_user.php
function delete_search($sid)
    {
        if (!$this->ID)
            return false;

        $this->db->query(
            "DELETE FROM ".$this->db->table_name('searches', true)
            ." WHERE `user_id` = ?"
                ." AND `search_id` = ?",
            (int) $this->ID, $sid);

        return $this->db->affected_rows();
    }
function delete_search($sid)
    {
        if (!$this->ID)
            return false;

        $this->db->query(
            "DELETE FROM ".$this->db->table_name('searches', true)
            ." WHERE `user_id` = ?"
                ." AND `search_id` = ?",
            (int) $this->ID, $sid);

        return $this->db->affected_rows();
    }
function delete_search ( $ sid ) { if ( ! $ this -> ID ) return false ; $ this -> db -> query ( "DELETE FROM " . $ this -> db -> table_name ( 'searches' , true ) . " WHERE `user_id` = ?" . " AND `search_id` = ?" , ( int ) $ this -> ID , $ sid ) ; return $ this -> db -> affected_rows ( ) ; }
Deletes given saved search record

@param  int  $sid  Search ID

@return boolean True if deleted successfully, false if nothing changed
Deletes given saved search record