Pluf Framework

Pluf Framework Commit Details


Date:2010-04-10 15:19:39 (14 years 8 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:0864973cb9e0d0fc595782058616edd29e7051b5
Parents: 169dfff0caa483056379e25250fbec4b37ed3a3e
Message:Fixed to handle missing data cases.

Changes:

File differences

src/Pluf/AB/Funnel.php
160160
161161
162162
163
164
163
164
165
166
167
168
169
170
171
172
165173
166174
167175
if ($steps[$i] and $steps[$i-1]) {
$tp = $steps[$i-1]['total'];
$tn = $steps[$i]['total'];
$steps[$i]['conv'] = sprintf('%01.2f%%', 100.0 - (float)($tp-$tn)/$tp*100.0);
$steps[$i]['conv1'] = sprintf('%01.2f%%', 100.0 - (float)($t1-$tn)/$t1*100.0);
if ($tp) {
$steps[$i]['conv'] = sprintf('%01.2f%%', 100.0 - (float)($tp-$tn)/$tp*100.0);
} else {
$steps[$i]['conv'] = 'N/A';
}
if ($t1) {
$steps[$i]['conv1'] = sprintf('%01.2f%%', 100.0 - (float)($t1-$tn)/$t1*100.0);
} else {
$steps[$i]['conv1'] = 'N/A';
}
if ($prop) {
$steps[$i]['sprops'] = array();
$steps[$i]['sprops1'] = array();

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.06523s using 13 queries.