or -> ||
authorReedy <reedy@wikimedia.org>
Fri, 24 Oct 2014 10:26:14 +0000 (11:26 +0100)
committerReedy <reedy@wikimedia.org>
Fri, 24 Oct 2014 10:26:14 +0000 (11:26 +0100)
Change-Id: Ic591f06f70c68bb2912b7f028f7f988eb658375d

includes/parser/Parser.php
includes/search/SearchPostgres.php

index 8dc9593..fe0c81f 100644 (file)
@@ -2594,7 +2594,7 @@ class Parser {
                                        $t
                                );
 
-                               if ( $openmatch or $closematch ) {
+                               if ( $openmatch || $closematch ) {
                                        $paragraphStack = false;
                                        # @todo bug 5718: paragraph closed
                                        $output .= $this->closeParagraph();
index 59b0c31..bda10b0 100644 (file)
@@ -85,7 +85,7 @@ class SearchPostgres extends SearchDatabase {
                                if ( strtolower( $terms[2] ) === 'and' ) {
                                        $searchstring .= ' & ';
                                }
-                               elseif ( strtolower( $terms[2] ) === 'or' or $terms[2] === '|' ) {
+                               elseif ( strtolower( $terms[2] ) === 'or' || $terms[2] === '|' ) {
                                        $searchstring .= ' | ';
                                }
                                elseif ( strtolower( $terms[2] ) === 'not' ) {