Skip to content

Commit

Permalink
Fix problems found by Eclipse
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsotirov committed May 21, 2019
1 parent 2e09920 commit d42e40c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions news/nutil.php.inc
@@ -1,5 +1,5 @@
<?php
$words;
global $words;

function mark_token_text($tokens, &$text) {
while ( list($idx, $token) = each($tokens) ) {
Expand All @@ -11,7 +11,6 @@
}

function mark_token_html($tokens, &$text) {
global $words;
$words = $tokens;
$text = preg_replace_callback("/>([^<]+?)</", //"mark_callback"
create_function(
Expand All @@ -25,8 +24,8 @@

/**
* Function for tokenization of search string
* @param $str String that should be tokenized
* @param $count Extract count tokens from the string. Defaulting to 5
* @param str String that should be tokenized
* @param count Extract count tokens from the string. Defaulting to 5
* @return Array with tokens extracted from the string
*/
function tokenize($str, $count = 5) {
Expand Down

0 comments on commit d42e40c

Please sign in to comment.