summaryrefslogtreecommitdiffstats
path: root/library/Pbs/Search.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Pbs/Search.php')
-rw-r--r--library/Pbs/Search.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/Pbs/Search.php b/library/Pbs/Search.php
index 127c4d3..9f25d03 100644
--- a/library/Pbs/Search.php
+++ b/library/Pbs/Search.php
@@ -74,8 +74,8 @@ class Pbs_Search{
preg_match_all("!\"(.*?)\"!is",$this->searchTerm,$matches);
$tmpsearch = $this->searchTerm;
for($i=0;$i<=count($matches[0]);$i++){
- $replace = str_replace(" ","<|>",$matches[0][$i]);
- $tmpsearch = str_replace($matches[0][$i],$replace,$tmpsearch);
+ @$replace = str_replace(" ","<|>",$matches[0][$i]);
+ @$tmpsearch = str_replace($matches[0][$i],$replace,$tmpsearch);
}
$parts = explode(" ",$tmpsearch);
foreach($parts as $search){
@@ -94,8 +94,8 @@ class Pbs_Search{
$searchb[] = $search;
}
}
- $this->searcha = $searcha;
- $this->searchb = $searchb;
+ $this->searcha = @$searcha;
+ $this->searchb = @$searchb;
#print_a($searcha, $searchb);
}
public function getSearchTerm(){