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/
_______________________________________________
Phpgroupware-tracker mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-tracker