Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: api/includes/ApiMonuments.php
- ===================================================================
- --- api/includes/ApiMonuments.php (revision 692)
- +++ api/includes/ApiMonuments.php (working copy)
- @@ -95,9 +95,9 @@
- $value = $this->getParam( "sr$field" );
- if ( $value === false ) continue;
- - if ( is_string( $value ) && strpos( $value, '%' ) !== false ) {
- + if ( count( $value ) == 1 && strpos( $value[0], '%' ) !== false ) {
- $where[] = $db->escapeIdentifier( $field ) . ' LIKE ' .
- - $db->quote( $value );
- + $db->quote( $value[0] );
- } else {
- if ( is_string( $value ) ) {
- $value = explode( '|', $value );
Add Comment
Please, Sign In to add comment