[Freeswitch-svn] [commit] r6914 - freeswitch/trunk/scripts/contrib/trixter/xml-cdr

Freeswitch SVN trixter at freeswitch.org
Thu Dec 20 11:49:46 EST 2007


Author: trixter
Date: Thu Dec 20 11:49:46 2007
New Revision: 6914

Modified:
   freeswitch/trunk/scripts/contrib/trixter/xml-cdr/Parse_XML_CDR.php

Log:
bug fix for multiple caller profiles


Modified: freeswitch/trunk/scripts/contrib/trixter/xml-cdr/Parse_XML_CDR.php
==============================================================================
--- freeswitch/trunk/scripts/contrib/trixter/xml-cdr/Parse_XML_CDR.php	(original)
+++ freeswitch/trunk/scripts/contrib/trixter/xml-cdr/Parse_XML_CDR.php	Thu Dec 20 11:49:46 2007
@@ -65,7 +65,7 @@
             }
             break;
         case "callflow":
-            $this->_CDR[$name]=array();
+            if(!is_array($this->_CDR[$name])) { $this->_CDR[$name]=array(); }
             $this->currentTag = $name;
             foreach ($attrs as $key => $value) {
                 $this->_CDR[$this->currentTag][$this->_callflowcnt][$key]=$value;



More information about the Freeswitch-svn mailing list