logic issue in connection filter
This commit is contained in:
parent
85f546e691
commit
0b232a610c
@ -3373,19 +3373,18 @@ function post_is_importable($item,$abook) {
|
|||||||
if(! $item)
|
if(! $item)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if((! $abook['abook_incl']) && (! $abook['abook_excl']))
|
if(! ($abook['abook_incl'] || $abook['abook_excl']))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
||||||
require_once('include/html2plain.php');
|
require_once('include/html2plain.php');
|
||||||
$text = prepare_text($item['body'],$item['mimetype']);
|
$text = prepare_text($item['body'],$item['mimetype']);
|
||||||
$text = html2plain($text);
|
$text = html2plain($text);
|
||||||
|
|
||||||
$lang = null;
|
$lang = null;
|
||||||
|
|
||||||
if((strpos($abook['abook_incl'],'lang=') !== false) || (strpos($abook['abook_excl'],'lang=') !== false))
|
if((strpos($abook['abook_incl'],'lang=') !== false) || (strpos($abook['abook_excl'],'lang=') !== false)) {
|
||||||
$lang = detect_language($text);
|
$lang = detect_language($text);
|
||||||
|
}
|
||||||
$tags = ((count($item['term'])) ? $item['term'] : false);
|
$tags = ((count($item['term'])) ? $item['term'] : false);
|
||||||
|
|
||||||
// exclude always has priority
|
// exclude always has priority
|
||||||
|
@ -1 +1 @@
|
|||||||
2015-07-26.1105
|
2015-07-27.1106
|
||||||
|
Reference in New Issue
Block a user