Remove dot(.) before displaying articles since recent mods
This commit is contained in:
parent
77350f50d6
commit
251f492cae
@ -186,6 +186,9 @@ function message_read($id,$bodynum=0,$group="") {
|
|||||||
echo $text_error["read_access_denied"];
|
echo $text_error["read_access_denied"];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(!is_numeric($id)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$message = new messageType;
|
$message = new messageType;
|
||||||
if ((isset($cache_articles)) && ($cache_articles == true)) {
|
if ((isset($cache_articles)) && ($cache_articles == true)) {
|
||||||
// Try to load a cached article
|
// Try to load a cached article
|
||||||
@ -219,6 +222,9 @@ function message_read($id,$bodynum=0,$group="") {
|
|||||||
((!isset($message->body[$bodynum])) &&
|
((!isset($message->body[$bodynum])) &&
|
||||||
($bodynum != -1))) {
|
($bodynum != -1))) {
|
||||||
// Pull article from spool if exists, else from server
|
// Pull article from spool if exists, else from server
|
||||||
|
if(trim($group) == '') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
unset($rawmessage);
|
unset($rawmessage);
|
||||||
if($CONFIG['article_database'] == '1') {
|
if($CONFIG['article_database'] == '1') {
|
||||||
$rawmessage = np_get_db_article($id, $group, 1);
|
$rawmessage = np_get_db_article($id, $group, 1);
|
||||||
|
@ -1279,6 +1279,7 @@ function np_get_db_article($article, $group, $makearray=1, $dbh=null) {
|
|||||||
file_put_contents($logfile, "\n".format_log_date()." ".$config_name." DEBUG: fetched: ".$article." from ".$group, FILE_APPEND);
|
file_put_contents($logfile, "\n".format_log_date()." ".$config_name." DEBUG: fetched: ".$article." from ".$group, FILE_APPEND);
|
||||||
if($makearray == 1) {
|
if($makearray == 1) {
|
||||||
$thisarticle = preg_split("/\r\n|\n|\r/", trim($msg2));
|
$thisarticle = preg_split("/\r\n|\n|\r/", trim($msg2));
|
||||||
|
array_pop($thisarticle);
|
||||||
return $thisarticle;
|
return $thisarticle;
|
||||||
} else {
|
} else {
|
||||||
return trim($msg2);
|
return trim($msg2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user