summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xincludes/classes/LibertyContent.php4
-rwxr-xr-x[-rw-r--r--]templates/edit_help_inc.tpl4
2 files changed, 4 insertions, 4 deletions
diff --git a/includes/classes/LibertyContent.php b/includes/classes/LibertyContent.php
index b025c14..5a547d7 100755
--- a/includes/classes/LibertyContent.php
+++ b/includes/classes/LibertyContent.php
@@ -3184,8 +3184,8 @@ class LibertyContent extends LibertyBase implements BitCacheable {
LEFT OUTER JOIN `".BIT_DB_PREFIX."liberty_content_data` lcds ON (lc.`content_id` = lcds.`content_id` AND lcds.`data_type`='summary')
WHERE lc.`content_id` = ?" ;
$res = $gBitSystem->mDb->getRow($sql, [ $pContentId ]);
- if (!(isset($this->mInfo['no_index']) and $this->mInfo['no_index'] == true)) {
- $this->mInfo['index_data'] = $res["title"] . " " . $res["data"] . " " . $res["login"] . " " . $res["real_name"] ;
+ if ( isset($res["title"] ) and !(isset($this->mInfo['no_index']) and $this->mInfo['no_index'] == true)) {
+ $this->mInfo['index_data'] = $res["title"] . " " . $res["data"] . " " . $res["login"] . " " . $res["real_name"];
}
}
diff --git a/templates/edit_help_inc.tpl b/templates/edit_help_inc.tpl
index e761754..fb61224 100644..100755
--- a/templates/edit_help_inc.tpl
+++ b/templates/edit_help_inc.tpl
@@ -3,12 +3,12 @@
{jstab title="Format Help"}
<h4>{tr}Syntax and input format help{/tr}</h4>
{foreach from=$formatplugins item=p}
- <h5>{if $p.format_help}<a href="#{$p.plugin_guid}">{/if}{$p.edit_label} Help{if $p.format_help}</a>{/if}</h5>
+ <h5>{if !empty($p.format_help)}<a href="#{$p.plugin_guid}">{/if}{$p.edit_label} Help{if !empty($p.format_help)}</a>{/if}</h5>
{$p.description} {if $p.help_page}{tr}To view syntax help, please visit {jspopup href="http://www.bitweaver.org/wiki/index.php?page=`$p.help_page`" title=$p.help_page class=external}.{/tr}{/if}
{/foreach}
{foreach from=$formatplugins item=p}
- {if $p.format_help}
+ {if !empty($p.format_help)}
{include file=$p.format_help}
{/if}
{/foreach}