freetag: Fix typo, cond instead of ccond, avoids undefined var error (#142)
* Fix typo, cond instead of ccond, avoids undefined var error * Avoid missing array indexes, array_map will remove indexes and this causes undefined index warnings, array_values fixes this * raise version for freetag plugin
This commit is contained in:
parent
9eb6dd26a6
commit
4e51353f17
|
@ -66,7 +66,7 @@ class serendipity_event_freetag extends serendipity_event
|
||||||
'smarty' => '2.6.7',
|
'smarty' => '2.6.7',
|
||||||
'php' => '7.0'
|
'php' => '7.0'
|
||||||
));
|
));
|
||||||
$propbag->add('version', '3.70.4');
|
$propbag->add('version', '3.70.5');
|
||||||
$propbag->add('event_hooks', array(
|
$propbag->add('event_hooks', array(
|
||||||
'frontend_fetchentries' => true,
|
'frontend_fetchentries' => true,
|
||||||
'frontend_fetchentry' => true,
|
'frontend_fetchentry' => true,
|
||||||
|
@ -770,7 +770,7 @@ class serendipity_event_freetag extends serendipity_event
|
||||||
$param = array_map('urldecode', $param); // for doubled encoded tag umlauts via searchengines backlinks in sprintf
|
$param = array_map('urldecode', $param); // for doubled encoded tag umlauts via searchengines backlinks in sprintf
|
||||||
}
|
}
|
||||||
$param = array_map('strip_tags', $param);
|
$param = array_map('strip_tags', $param);
|
||||||
$param = array_filter($param); // empty removed XSS by strip_tags
|
$param = array_values(array_filter($param)); // empty removed XSS by strip_tags
|
||||||
if (function_exists('serendipity_specialchars')) {
|
if (function_exists('serendipity_specialchars')) {
|
||||||
$serendipity['head_subtitle'] = sprintf(PLUGIN_EVENT_FREETAG_USING, implode(' + ', array_map('serendipity_specialchars', $param)));
|
$serendipity['head_subtitle'] = sprintf(PLUGIN_EVENT_FREETAG_USING, implode(' + ', array_map('serendipity_specialchars', $param)));
|
||||||
} else {
|
} else {
|
||||||
|
@ -1572,7 +1572,7 @@ addLoadEvent(enableAutocomplete);
|
||||||
} else if (is_array($tag)) {
|
} else if (is_array($tag)) {
|
||||||
$join = "LEFT JOIN {$serendipity['dbPrefix']}entrytags AS neg ".
|
$join = "LEFT JOIN {$serendipity['dbPrefix']}entrytags AS neg ".
|
||||||
"ON main.entryid = neg.entryid ";
|
"ON main.entryid = neg.entryid ";
|
||||||
$ccond = '';
|
$cond = '';
|
||||||
$ncond = '';
|
$ncond = '';
|
||||||
|
|
||||||
$first = true;
|
$first = true;
|
||||||
|
|
Loading…
Reference in a new issue