Index: trunk/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -1194,7 +1194,8 @@ |
1195 | 1195 | $sql .= $sqlSet; |
1196 | 1196 | } |
1197 | 1197 | |
1198 | | - if ( $conds != '*' || ( is_array( $conds ) && count( $conds ) ) ) { |
| 1198 | + if ( $conds !== array() && $conds !== '*' ) { |
| 1199 | + if ( $conds !== array() && $conds !== '*' ) { |
1199 | 1200 | $conds = $this->wrapConditionsForWhere( $table, $conds ); |
1200 | 1201 | $sql .= ' WHERE ' . $this->makeList( $conds, LIST_AND ); |
1201 | 1202 | } |
Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -1693,7 +1693,7 @@ |
1694 | 1694 | $opts = $this->makeUpdateOptions( $options ); |
1695 | 1695 | $sql = "UPDATE $opts $table SET " . $this->makeList( $values, LIST_SET ); |
1696 | 1696 | |
1697 | | - if ( $conds != '*' || ( is_array( $conds ) && count( $conds ) ) ) { |
| 1697 | + if ( $conds !== array() && $conds !== '*' ) { |
1698 | 1698 | $sql .= " WHERE " . $this->makeList( $conds, LIST_AND ); |
1699 | 1699 | } |
1700 | 1700 | |