Guest User

Untitled

a guest
Oct 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Index: api/includes/ApiMonuments.php
  2. ===================================================================
  3. --- api/includes/ApiMonuments.php (revision 692)
  4. +++ api/includes/ApiMonuments.php (working copy)
  5. @@ -95,9 +95,9 @@
  6. $value = $this->getParam( "sr$field" );
  7. if ( $value === false ) continue;
  8.  
  9. - if ( is_string( $value ) && strpos( $value, '%' ) !== false ) {
  10. + if ( count( $value ) == 1 && strpos( $value[0], '%' ) !== false ) {
  11. $where[] = $db->escapeIdentifier( $field ) . ' LIKE ' .
  12. - $db->quote( $value );
  13. + $db->quote( $value[0] );
  14. } else {
  15. if ( is_string( $value ) ) {
  16. $value = explode( '|', $value );
Add Comment
Please, Sign In to add comment