[Php-blog-plugin-cvs] additional_plugins/serendipity_event_freetag serendipity_event_freetag.php, 1
A reliable, secure & extensible PHP blog | Not mainstream since 2002
Brought to you by:
garvinhicking,
jhermanns
From: Garvin H. <gar...@us...> - 2006-11-27 08:41:35
|
Update of /cvsroot/php-blog/additional_plugins/serendipity_event_freetag In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12585 Modified Files: serendipity_event_freetag.php Log Message: Fix empty delimiter message Index: serendipity_event_freetag.php =================================================================== RCS file: /cvsroot/php-blog/additional_plugins/serendipity_event_freetag/serendipity_event_freetag.php,v retrieving revision 1.82 retrieving revision 1.83 diff -u -d -r1.82 -r1.83 --- serendipity_event_freetag.php 20 Nov 2006 09:26:30 -0000 1.82 +++ serendipity_event_freetag.php 27 Nov 2006 08:41:32 -0000 1.83 @@ -67,7 +67,7 @@ 'smarty' => '2.6.7', 'php' => '4.1.0' )); - $propbag->add('version', '2.72'); + $propbag->add('version', '2.73'); $propbag->add('event_hooks', array( 'frontend_fetchentries' => true, 'frontend_fetchentry' => true, @@ -573,6 +573,8 @@ $searchtext = $eventData['body'] . $eventData['extended']; foreach($automatted AS $keyword => $ktags) { + $keyword = trim($keyword); + if (empty($keyword)) continue; if (!is_array($ktags) || count($ktags) < 1) continue; if (stristr($searchtext, $keyword)) { foreach($ktags AS $tag => $is_assigned) { |