Hello,

I got the following warnings if using multisite configuration:

Warning: array_merge() [function.array-merge]: Argument #1 is not an
array in /..path..to../system/autoload.php on line 52

Warning: array_merge() [function.array-merge]: Argument #2 is not an
array in /..path..to../system/autoload.php on line 52

Reason: The change in revision 5087
==>
http://trac.habariproject.org/habari/browser/trunk/htdocs/system/autoload.php?rev=5087
==>
http://trac.habariproject.org/habari/changeset/5087/trunk/htdocs/system/autoload.php

glob(...) returns false on some systems and this causes an warning
in the function array_merge().

Possible fix:

Change the following lines ...
        $glob_classes = glob( $site_user_dir . '/classes/*.php' );
        $glob_handlers = glob( $site_user_dir . '/handlers/*.php' );
        $glob = array_merge( $glob_classes, $glob_handlers );

to ...
        $glob_classes = glob( $site_user_dir . '/classes/*.php' );
        if ( $glob_classes === false ) $glob_classes = array();
        $glob_handlers = glob( $site_user_dir . '/handlers/*.php' );
        if ( $glob_handlers === false ) $glob_handlers = array();
        $glob = array_merge( $glob_classes, $glob_handlers );

greetings from germany,
guido

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev

Reply via email to