raw_params is returned from _attach(), not a parameter to pass to it, and it's option...
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 31 Oct 2009 03:05:50 +0000 (23:05 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 31 Oct 2009 03:05:50 +0000 (23:05 -0400)
so we need to check existence before accessing it.

framework/Ajax/lib/Horde/Ajax/Imple/AutoCompleter.php

index 16ffd4e..0717467 100644 (file)
@@ -38,11 +38,7 @@ abstract class Horde_Ajax_Imple_AutoCompleter extends Horde_Ajax_Imple_Base
             '"' . $this->_params['triggerId'] . '"'
         );
 
-        $config = $this->_attach(array(
-            'raw_params' => array(),
-            'tokens' => array(',', ';')
-        ));
-
+        $config = $this->_attach(array('tokens' => array(',', ';')));
 
         if (isset($config['ajax'])) {
             Horde::addScriptFile('autocomplete.js', 'horde');
@@ -78,6 +74,7 @@ abstract class Horde_Ajax_Imple_AutoCompleter extends Horde_Ajax_Imple_Base
             return;
         }
 
+        $config['raw_params'] = !empty($config['raw_params']) ? $config['raw_params'] : array();
         foreach ($config['raw_params'] as $name => $val) {
             $config['params'][$name] = 1;
         }