FoOlRulez/FoOlFuuka — Issue #59: Searching for an image with no matches breaks
Author: Ekss
Created: 2012-01-30 03:14:27+00:00
State: open

Searching for an image that has no matches returns a PHP error before the html headers, which breaks everything.

Example:
http://archive.foolz.us/jp/image/dg5Y6QyFDlMkmJlIXRe18g/

```html

A PHP Error was encountered

Severity: Notice

Message: Undefined index: total_found

Filename: controllers/chan.php

Line Number: 522

A PHP Error was encountered

Severity: Notice

Message: Undefined index: posts

Filename: controllers/chan.php

Line Number: 532

(...)
```