[Tickets #3636] NEW: wrong datatype

bugs@bugs.horde.org bugs at bugs.horde.org
Wed Mar 15 09:44:37 PST 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3636
-----------------------------------------------------------------------
 Ticket             | 3636
 Created By         | adrieder at sbox.tugraz.at
 Summary            | wrong datatype
 Queue              | Kronolith
 Version            | HEAD
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


adrieder at sbox.tugraz.at (2006-03-15 09:44) wrote:

Hi,

I get a lot of the following errors in the logs:
[Wed Mar 15 18:37:44 2006] [error] PHP Warning:  in_array(): Wrong datatype
for second argument in /usr/local/apache/htdocs/horde/kronolith/lib/base.php
on line 146

The following patch stops this:

--- base.php    Thu Mar  9 11:45:42 2006
+++ base.php.new        Wed Mar 15 18:37:49 2006
@@ -143,7 +143,7 @@
             $GLOBALS['all_calendars'][Auth::getAuth()] = &$share;

             /* Make sure the personal calendar is displayed by default. */
-            if (!in_array($GLOBALS['display_calendars'], Auth::getAuth()))
{
+            if (!in_array($GLOBALS['display_calendars'],
array(Auth::getAuth()))) {
                 $GLOBALS['display_calendars'][] = Auth::getAuth();
             }





More information about the bugs mailing list