Avoid warning about non-countable var, fix #587.
This commit is contained in:
parent
e3aaefd2e9
commit
4445926033
@ -137,7 +137,7 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr
|
||||
$template_vars['errMsg'] = $errMsg;
|
||||
$template_vars['entry'] =& $entry;
|
||||
$template_vars['targetURL'] = $targetURL;
|
||||
$template_vars['cat_count'] = count($cats)+1;
|
||||
$template_vars['cat_count'] = is_array($cats) ? (count($cats)+1) : 1;
|
||||
$template_vars['wysiwyg'] = $serendipity['wysiwyg'];
|
||||
$template_vars['serendipityRightPublish'] = $_SESSION['serendipityRightPublish'];
|
||||
$template_vars['wysiwyg_blocks'] = array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user