Permalink
Browse files

Added check for existence of autocomplete ini variable, avoid out of …

…the box errors
  • Loading branch information...
1 parent 226d2d9 commit 316bd34a64b50b16c60f8976102cf0a7b40a7093 @paulborgermans paulborgermans committed Aug 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/ezfindservercallfunctions.php
@@ -112,7 +112,7 @@ public static function autocomplete( $args )
$findINI = eZINI::instance( 'ezfind.ini' );
// Only make calls if explicitely enabled
- if ( $findINI->variable( 'AutoCompleteSettings', 'AutoComplete' ) === 'enabled' )
+ if ( $findINI->hasVariable( 'AutoCompleteSettings', 'AutoComplete' ) && $findINI->variable( 'AutoCompleteSettings', 'AutoComplete' ) === 'enabled' )
{
$solrINI = eZINI::instance( 'solr.ini' );

0 comments on commit 316bd34

Please sign in to comment.