[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-tracker] [bug #13504] Fatal error in class.sql_builder.inc
From: |
anonymous |
Subject: |
[Phpgroupware-tracker] [bug #13504] Fatal error in class.sql_builder.inc.php with php5 |
Date: |
Wed, 22 Jun 2005 14:35:05 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13504>
Summary: Fatal error in class.sql_builder.inc.php with php5
Project: phpGroupWare
Submitted by: None
Submitted on: mer 22.06.2005 à 10:35
Category: API - phpGWapi
Item Group: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Component Version: None
Platform Version: None
Reproducibility: None
Planned Release: None
Fixed Release:
_______________________________________________________
Details:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in
c:\www\buromax-intranet\phpgwapi\inc\class.sql_builder.inc.php on line 260
Warning: Invalid argument supplied for foreach() in
c:\www\buromax-intranet\phpgwapi\inc\class.sql_builder.inc.php on line 263
Fatal error: Call to a member function get_identity() on a non-object in
c:\www\buromax-intranet\phpgwapi\inc\class.sql_builder.inc.php on line 334
Fix :
near line 259 -> 261, change :
$links =
array_merge($this->entities[$entity_name]->get_ilinks(),
$this->entities[$entity_name]->get_elinks());
For :
$links =
array_merge((array)$this->entities[$entity_name]->get_ilinks(),
(array)$this->entities[$entity_name]->get_elinks());
As per the php doc :
The behavior of array_merge() was modified in PHP 5. Unlike PHP 4,
array_merge() now only accepts parameters of type array. However, you can use
typecasting to merge other types.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13504>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-tracker] [bug #13504] Fatal error in class.sql_builder.inc.php with php5,
anonymous <=