more error handling

This commit is contained in:
friendica
2012-03-31 17:44:34 -07:00
parent 2147e0a71f
commit e6fd6bfd89
2 changed files with 4 additions and 1 deletions

View File

@@ -250,7 +250,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
$threads = array();
$threadsid = -1;
if(count($items)) {
if($items && count($items)) {
if($mode === 'network-new' || $mode === 'search' || $mode === 'community') {