When a search returns an empty result we are getting the following error:
Notice: Undefined variable: show_synonyms in include() (line 19 of /var/aegir/platforms/eps-3.0.2-drupal-7.14/profiles/eps/modules/contrib/google_appliance/theme/google-appliance-results.tpl.php).
This error can be fixed by adding an isset check to that variable on line 19. Change this:
<?php if ($show_synonyms) : ?>
to this:
<?php if (isset($show_synonyms)) : ?>
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | google_appliance-no-results-fix-1795992-2.patch | 513 bytes | broeker |
Comments
Comment #1
mpgeek commented@broeker, how do you feel about making a patch so I can quick-turn this?
Comment #2
broeker commentedHere you go . . .
Comment #3
mpgeek commentedCommitted to dev: http://drupalcode.org/project/google_appliance.git/commit/5afcb81.
Comment #4
mpgeek commentedWorks in my environments. What about yours @broeker?
Comment #5
mpgeek commentedSee stable release 7.x-1.9.
Comment #5.0
mpgeek commentedfixed code