get rid of getSnippet offset notice take 2, a=chris

Chris Pollett [2013-07-22 23:Jul:nd]
get rid of getSnippet offset notice take 2, a=chris
Filename
models/model.php
diff --git a/models/model.php b/models/model.php
index 7cef97826..45cb1ccb0 100755
--- a/models/model.php
+++ b/models/model.php
@@ -282,12 +282,12 @@ class Model implements CrawlConstants
             foreach($word_locations as $pos) {
                 if($pos < $high) continue;
                 $pre_low = max($pos - SNIPPET_LENGTH_LEFT, 0);
-                $low = mb_stripos($text_source, " ", $pre_low);
+                $low = @mb_stripos($text_source, " ", $pre_low);
                 if($low > $pos) {
                     $low = $pre_low;
                 }
                 $pre_high = min($pos + SNIPPET_LENGTH_RIGHT, $len);
-                $high = mb_stripos($text_source, " ",
+                $high = @mb_stripos($text_source, " ",
                     max(min($pre_high - 10, 0), min($pos, $len)));
                 if($high > $pre_high + 10){
                     $high = $pre_high;
ViewGit