1

Topic: Searching with AND op, doesn't work ?

It looks that bool ops don't work, is it a bug or do i miss something ?

Sakis is my name, ssb just a nick.

Re: Searching with AND op, doesn't work ?

Hmm, you are correct. It doesn't appear to be working at all. I'll have a look at it first thing tomorrow. I'm heading out for the evening :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3

Re: Searching with AND op, doesn't work ?

Any simple fix ?

Sakis is my name, ssb just a nick.

4

Re: Searching with AND op, doesn't work ?

Trawl the forums looking for what you want :up:

5

Re: Searching with AND op, doesn't work ?

Could you please point me to a possible answer. I couldn't find anything related.

Sakis is my name, ssb just a nick.

6

Re: Searching with AND op, doesn't work ?

Do a search :D

If Rickard says he'll look into it, then it will most likely be incorporated into the next release of Pun.

I don't remember on this before so perhaps there isn't a quickfix going.

7

Re: Searching with AND op, doesn't work ?

Thanks Joey smile

Sakis is my name, ssb just a nick.

Re: Searching with AND op, doesn't work ?

I'm going to investigate it right now.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Searching with AND op, doesn't work ?

Fixed it! Here's a quickfix. Open up search.php and go to line 191. There, replace

if ($word != 'and' || $word != 'or' || $word != 'not')

with

if ($word != 'and' && $word != 'or' && $word != 'not')

"Programming is like sex: one mistake and you have to support it for the rest of your life."

10

Re: Searching with AND op, doesn't work ?

Thank you, come again [/apu]

11

Re: Searching with AND op, doesn't work ?

Thanks Rickard, i'll give it a try soon

Sakis is my name, ssb just a nick.