- avoids warning if no result is coming back
- brought back init variable before using it
Signed-off-by: Roland Haeder <roland@mxchange.org>
intval($intro[0]['contact-id'])
);
+ $auto_confirm = false;
+
if(dbm::is_result($r)) {
if(($r[0]['page-flags'] != PAGE_NORMAL) && ($r[0]['page-flags'] != PAGE_PRVGROUP))
$auto_confirm = true;
intval($parents),
intval($max_comments + 1)
);
- $items = array_merge($items, $thread_items);
+
+ if (dbm::is_result($thread_items))
+ $items = array_merge($items, $thread_items);
}
$items = conv_sort($items,$ordering);
} else {