summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9dc75d2)
raw | patch | inline | side by side (parent: 9dc75d2)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Feb 2006 05:46:37 +0000 (05:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Feb 2006 05:46:37 +0000 (05:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2714 594d385d-05f5-0310-b6e9-bd551577e9d8
include/php_writeexcel/class.writeexcel_format.inc.php | patch | blob | history |
diff --git a/include/php_writeexcel/class.writeexcel_format.inc.php b/include/php_writeexcel/class.writeexcel_format.inc.php
index 1523d3710b1f496588b62999d0021e306e0b83e2..144923f41df6e22ded63f5cf4dcedbd6f04064a0 100644 (file)
*/
function copy($other) {
$xf = $this->_xf_index; // Backup XF index
- $this = $other; // Copy properties
+
+ /* A better way to copy member vars, ... won't cause fatal errors in PHP5.
+ The only thing i can understand is : For what is this function used,
+ it is never used by any object, as I can see in the source code.
+ ...
+ */
+ foreach(get_object_vars($other) as $var => $val){
+ $this->$var = $val;
+ }
+// $this = $other; // Copy properties
$this->_xf_index = $xf; // Restore XF index
}