phpOpenTracker/phpOpenTracker/API/plugins clickpath_analysis.php,1.46,1.46.2.1

Sebastian Bergmann <[email protected]>
Newsgroups gmane.comp.web.phpopentracker.cvs
Message-ID <[email protected]>
Update of /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/API/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv32167/phpOpenTracker/API/plugins

Modified Files:
      Tag: phpOpenTracker_1_3
	clickpath_analysis.php 
Log Message:
MFB: Fixed a bug in the phpOpenTracker API plugin for Clickpath work incorrectly.

Index: clickpath_analysis.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/API/plugins/Attic/clickpath_analysis.php,v
retrieving revision 1.46
retrieving revision 1.46.2.1
diff -C2 -d -r1.46 -r1.46.2.1
*** clickpath_analysis.php	19 Sep 2003 07:17:27 -0000	1.46
--- clickpath_analysis.php	16 Dec 2003 07:29:33 -0000	1.46.2.1
***************
*** 302,306 ****
  
      foreach ($data['subpathStatistics'] as $fromNode => $toNodes) {
!       foreach ($toNodes as $toNode => $data) {
          if ($parameters['api_call'] == 'all_paths') {
            $fromColor = $parameters['document_color'];
--- 302,306 ----
  
      foreach ($data['subpathStatistics'] as $fromNode => $toNodes) {
!       foreach ($toNodes as $toNode => $nodeData) {
          if ($parameters['api_call'] == 'all_paths') {
            $fromColor = $parameters['document_color'];
***************
*** 364,374 ****
              array(
                'color' => $edgeColor,
!               'label' => $data['count']
              )
            );
          }
  
!         else if (isset($data['count'])) {
!           $data['subpathStatistics'][$fromNode][$toNode]['time_spent'] = floor($data['time_spent'] / $data['count']);
          }
        }
--- 364,374 ----
              array(
                'color' => $edgeColor,
!               'label' => $nodeData['count']
              )
            );
          }
  
!         else if (isset($nodeData['count'])) {
!           $data['subpathStatistics'][$fromNode][$toNode]['time_spent'] = floor($nodeData['time_spent'] / $nodeData['count']);
          }
        }




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.