| @@ 296-304 (lines=9) @@ | ||
| 293 | $cond[$fieldName . " LIKE"] = $field['before'] . $value . $field['after']; |
|
| 294 | } |
|
| 295 | } |
|
| 296 | if (count($cond) > 1) { |
|
| 297 | if (isset($conditions['OR'])) { |
|
| 298 | $conditions[]['OR'] = $cond; |
|
| 299 | } else { |
|
| 300 | $conditions['OR'] = $cond; |
|
| 301 | } |
|
| 302 | } else { |
|
| 303 | $conditions = array_merge($conditions, $cond); |
|
| 304 | } |
|
| 305 | return $conditions; |
|
| 306 | } |
|
| 307 | ||
| @@ 371-379 (lines=9) @@ | ||
| 368 | } |
|
| 369 | } |
|
| 370 | } |
|
| 371 | if (count($cond) > 1) { |
|
| 372 | if (isset($conditions['OR'])) { |
|
| 373 | $conditions[]['OR'] = $cond; |
|
| 374 | } else { |
|
| 375 | $conditions['OR'] = $cond; |
|
| 376 | } |
|
| 377 | } else { |
|
| 378 | $conditions = array_merge($conditions, $cond); |
|
| 379 | } |
|
| 380 | return $conditions; |
|
| 381 | } |
|
| 382 | ||