Index: extension/ezfind/design/standard/javascript/ezajaxsearch.js
===================================================================
--- extension/ezfind/design/standard/javascript/ezajaxsearch.js	(revision 4475)
+++ extension/ezfind/design/standard/javascript/ezajaxsearch.js	(working copy)
@@ -20,7 +20,7 @@
 
                     var spellCheck = response.content.SearchExtras.spellcheck;
                     // A spellcheck proposal was made, display it : 
-                    if ( spellCheck.collation )
+                    if ( spellCheck && spellCheck.collation )
                     {
                         var scTemplate = ret.cfg.spellchecktemplate;
                         scTemplate = scTemplate.replace( /\{+spellcheck+\}/, spellCheck.collation );
@@ -132,14 +132,17 @@
             data += '&SearchLimit=10';
             data += '&SearchOffset=0';
 
-            for ( var i = 0; i < ret.cfg.customSearchAttributes.length; i++ )
+            if ( ret.cfg.customSearchAttributes !== undefined )
             {
-                data += '&' + Y.get( ret.cfg.customSearchAttributes[i] ).get('name') + '=' + Y.get( ret.cfg.customSearchAttributes[i] ).get('value'); 
+                for ( var i = 0; i < ret.cfg.customSearchAttributes.length; i++ )
+                {
+                    data += '&' + Y.get( ret.cfg.customSearchAttributes[i] ).get('name') + '=' + Y.get( ret.cfg.customSearchAttributes[i] ).get('value'); 
+                }
             }
             
-            var backendUri = ret.cfg.backendUri ? ret.cfg.backendUri : 'ezflow::search' ;
+            var backendUri = ret.cfg.backendUri ? ret.cfg.backendUri : 'ezfind::search' ;
             
-            if(searchString !== '')
+            if( searchString !== '' )
             {
                 Y.io.ez(backendUri, {on: {success: successCallBack}, method: 'POST', data: data });
             }
