12
Quote:
Bleekk wrote:
@aerograf
maybe it helps if you redirect to the index page if a user calls a non-existent page
go to entry.php line 81
change this // verify result
if ($xoopsDB->getRowsNum($result) <= 0) {
redirect_header('javascript:history.go(-1)', 2, _MD_LEXIKON_UNKNOWNERROR);
exit();
}
to // verify result
if ($xoopsDB->getRowsNum($result) <= 0) {
redirect_header(XOOPS_URL.'/modules/lexikon/index.php', 2, _MD_LEXIKON_UNKNOWNERROR);
exit();
}
Thank you!!! Less errors from robots will.
The same should be done in category.php line 117, reduced to the form:
// verify ID
if ($xoopsDB->getRowsNum($catdata) <= 0) {
redirect_header(XOOPS_URL.'/modules/lexikon/index.php', 2, _MD_LEXIKON_UNKNOWNERROR);
exit();
}
But why do we need /include/notification.inc.php? Like he should do a redirect? Or am I wrong?