|
@@ -751,11 +751,13 @@ class Base
|
|
|
$orCond = array();
|
|
|
if(is_array($or)) {
|
|
|
foreach($or as $key => $val) {
|
|
|
- $orCond[] = sprintf($key, $this->setQuote($val));
|
|
|
+ $orCond[] = sprintf($this->_query['OR'], $key, $this->setQuote($val));
|
|
|
}
|
|
|
}
|
|
|
if(!empty($this->where)) {
|
|
|
$this->where .= " OR (". join(" ". $opt . " ", $orCond) .")";
|
|
|
+ }else{
|
|
|
+ $this->where = " WHERE (". join(" ". $opt . " ", $orCond) .")";
|
|
|
}
|
|
|
return $this;
|
|
|
}
|