PrestaShop/PrestaShop — pull request #2326 by solarissmoke (2014-12-13 04:08:20+00:00)
Title: Fix invalid argument warning in SearchController.php

`$search['result']` (populated from `Search::find()`) be `false` instead of an array, if the SQL query failed for any reason. This causes an invalid argument error when the code in `SearchController` tries to iterate over that.