Cast the url to string when it will be json encoded
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 19 Dec 2009 22:08:57 +0000 (17:08 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 19 Dec 2009 22:08:57 +0000 (17:08 -0500)
framework/Ajax/lib/Horde/Ajax/Imple/AutoCompleter.php

index 5dc1086..e8667a6 100644 (file)
@@ -60,7 +60,7 @@ abstract class Horde_Ajax_Imple_AutoCompleter extends Horde_Ajax_Imple_Base
             $config['params'] = array_merge(array(
                 'boxClass' => 'hordeACBox kronolithLongField',
                 'trigger' => $this->_params['triggerId'],
-                'uri' => $this->_getUrl($config['pretty'], $GLOBALS['registry']->getApp()),
+                'uri' => (string)$this->_getUrl($config['pretty'], $GLOBALS['registry']->getApp()),
                 'URI_IMG_HORDE' => $GLOBALS['registry']->getImageDir('horde'),
                 'box' => !empty($this->_params['box']) ? $this->_params['box'] : ''
             ), $config['params']);