includes/search.php
changeset 1367 c660cf54c045
parent 1289 541bb25d0b22
--- a/includes/search.php	Mon Nov 19 11:33:49 2012 -0500
+++ b/includes/search.php	Mon Nov 19 11:35:17 2012 -0500
@@ -276,7 +276,7 @@
 						if ( strstr($word_cs, $qword) )
 							$lev_array[ $qword ] = levenshtein($qword, $word_cs);
 					}
-					if ( min($lev_array) > 3 )
+					if ( count($lev_array) && min($lev_array) > 3 )
 					{
 						$inc /= array_sum($lev_array) / count($lev_array);
 					}