* Throws a NamedUserException on search failure.
*/
public function throwNoMatchesException() {
+ @header('HTTP/1.0 404 Not Found');
+
if (empty($this->query)) {
throw new NamedUserException(WCF::getLanguage()->get('wcf.search.error.user.noMatches'));
}
'sidebarName' => 'com.woltlab.wcf.user.MembersListPage',
'allowSpidersToIndexThisPage' => true
));
+
+ if (count($this->objectList) === 0) {
+ @header('HTTP/1.0 404 Not Found');
+ }
}
}
'resultListApplication' => $this->objectType->getProcessor()->getApplication(),
'allowSpidersToIndexThisPage' => true
));
+
+ if (count($this->objectList) === 0) {
+ @header('HTTP/1.0 404 Not Found');
+ }
}
}