Permalink
Browse files

Fix EZP-28165: Incorrect increment of object_count in ezsearch_word (#…

…1319)

* Fix for incorrect increment of object_count in ezsearch_word

* Do not rename variable
  • Loading branch information...
gabrielfin authored and andrerom committed Nov 21, 2017
1 parent 4b3adc9 commit ee65f387375a874dd89a7e7ba83c8047b10109d1
Showing with 1 addition and 1 deletion.
  1. +1 −1 kernel/search/plugins/ezsearchengine/ezsearchengine.php
@@ -168,7 +168,6 @@ function buildWordIDArray( $indexArrayOnlyWords )
$trans = eZCharTransform::instance();
$wordCount = count( $indexArrayOnlyWords );
$wordIDArray = array();
$wordArray = array();
// store the words in the index and remember the ID
$dbName = $db->databaseName();
@@ -185,6 +184,7 @@ function buildWordIDArray( $indexArrayOnlyWords )
// Build a has of the existing words
$wordResCount = count( $wordRes );
$existingWordArray = array();
$wordIDArray = array();
for ( $i = 0; $i < $wordResCount; $i++ )
{
$wordIDArray[] = $wordRes[$i]['id'];

0 comments on commit ee65f38

Please sign in to comment.