|
...
|
...
|
@@ -75,7 +75,7 @@ function preview_story($stories) {
|
|
75
|
75
|
$count = 0;
|
|
76
|
76
|
if(file_exists("$skindir/listings.tpl")) $tpl = new TemplatePower( "$skindir/listings.tpl" );
|
|
77
|
77
|
else $tpl = new TemplatePower("default_tpls/listings.tpl");
|
|
78
|
|
- if(count($stories['coauthors']) > 0) $stories['coauthors'] = 1;
|
|
|
78
|
+ if(is_array($stories['coauthors']) && count($stories['coauthors']) > 0) $stories['coauthors'] = 1;
|
|
79
|
79
|
$tpl->prepare( );
|
|
80
|
80
|
$tpl->newBlock("listings");
|
|
81
|
81
|
$tpl->newBlock("storyblock");
|