Re: PHP Warning: usort: Invalid comparison function

Jan Schneider <[email protected]>
Newsgroups gmane.comp.horde.gollem
Message-ID <[email protected]>
Zitat von Philipp Wagner <[email protected]>:

> Hi,
>
> I'm trying to get Gollem H3 1.1 (Horde 3.3.4) set up. I'm running into
> two problems:
>
> 1) I get the following PHP Warning with PHP 5.2.9:
>
> Warning: usort() [function.usort]: Invalid comparison function in
> <stripped>/groupware/gollem/lib/Gollem.php on line 322
>
> That's the line:
> usort($files, array('Gollem',
> $sortcols[$GLOBALS['prefs']->getValue('sortby')]));
>
> So I guess I'm missing some config option, but didn't find it anywhere
> ... What should it contain?

Did you upgrade from an earlier version? The you didn't update all  
configuration files, especially prefs.php.
In any case your "sortby" preference is broken.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/

--
Gollem mailing list - Join the hunt: http://horde.org/bounties/#gollem
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEABECAAYFAkorgbwACgkQeZECfE3luWldZgCg29ybKlZzBiZPqy6s8/NIOImF
WosAoLqQ+aO4u8cHfn+syW/JaqKntcwm
=G0Zw
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.