[dev] Small IMP patch - Indices.php
Johny Ågotnes
horde at agotnes.com
Sun May 2 12:40:57 UTC 2010
Setting up a test environment to get ActiveSync going, and as part of
the test env I am getting IMP working...
Trick was - found a bug, think I got the fix for it and so here is a
very small patch:
if anyone wants it in a different format - let me know. I'm on PHP 5.2
- the source in GIT might work on 5.3 based on what I was reading,
however, it certainly doesn't on 5.2 with this error:
PHP Fatal error: func_get_args(): Can't be used as a function parameter
diff --git a/imp/lib/Indices.php b/imp/lib/Indices.php
index 6768e9c..1e2345e 100644
--- a/imp/lib/Indices.php
+++ b/imp/lib/Indices.php
@@ -30,7 +30,8 @@ class IMP_Indices implements Iterator
public function __construct()
{
if (func_num_args()) {
- call_user_func_array(array($this, 'add'), func_get_args());
+ $data = func_get_args() ;
+ call_user_func_array(array($this, 'add'), $data );
}
}
More information about the dev
mailing list