Some fixes:
- avoids warning if no result is coming back - brought back init variable before using it Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
636164e9ef
commit
e171a1cd22
|
@ -732,6 +732,8 @@ function dfrn_request_content(&$a) {
|
||||||
intval($intro[0]['contact-id'])
|
intval($intro[0]['contact-id'])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$auto_confirm = false;
|
||||||
|
|
||||||
if(dbm::is_result($r)) {
|
if(dbm::is_result($r)) {
|
||||||
if(($r[0]['page-flags'] != PAGE_NORMAL) && ($r[0]['page-flags'] != PAGE_PRVGROUP))
|
if(($r[0]['page-flags'] != PAGE_NORMAL) && ($r[0]['page-flags'] != PAGE_PRVGROUP))
|
||||||
$auto_confirm = true;
|
$auto_confirm = true;
|
||||||
|
|
|
@ -728,6 +728,8 @@ function network_content(&$a, $update = 0) {
|
||||||
intval($parents),
|
intval($parents),
|
||||||
intval($max_comments + 1)
|
intval($max_comments + 1)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (dbm::is_result($thread_items))
|
||||||
$items = array_merge($items, $thread_items);
|
$items = array_merge($items, $thread_items);
|
||||||
}
|
}
|
||||||
$items = conv_sort($items,$ordering);
|
$items = conv_sort($items,$ordering);
|
||||||
|
|
Loading…
Reference in a new issue