The fix in the CVS is good. In addition, there is a bug in the search.class.php file -- the links section has always disregarded the user when you do the advanced search or the more by user search. To correct this, I altered the following in function _searchLinks():
Text Formatted Code
if ( $this->_query != "" AND (($this->_type == 'links') OR ($this->_type == 'all')) ) {
to this (The Fix in CVS already takes care of what the above line is trying to do), i.e. !="":
Text Formatted Code
if (($this->_type == 'links') OR ($this->_type == 'all')) {
and inserted:
Text Formatted Code
if (!empty($this->_author)) {$sql .= "AND ({$_TABLES['links']}.owner_id = '$this->_author') ";
}
just after the lines:
Text Formatted Code
if (!empty($this->_dateStart) AND !empty($this->_dateEnd)) {
$delim = substr($this->_dateStart, 4, 1);
$DS = explode($delim, $this->_dateStart);
$DE = explode($delim, $this->_dateEnd);
$startdate = mktime(0, 0, 0, $DS[1], $DS[2], $DS[0]);
$enddate = mktime(23, 59, 59, $DE[1], $DE[2], $DE[0]);
$sql .= "AND (UNIX_TIMESTAMP(date) BETWEEN '$startdate' AND '$enddate') ";
}
Hope this helps anyone that has been wondering about the "links" dump in all searches.
Please let me know if there is a better way.