Skip to content

Commit ae124ca

Browse files
authored
Merge pull request #115 from bramley/Mantis_19976
Mantis 19976 Open Rate and bounce rate calculated differently in campaign results in dashboard and stats overview
2 parents 78d1bb2 + b3c57a3 commit ae124ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/home.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114

115115
<div id="lastcampaign" class="col-sm-6 col-lg-4">
116116
<h3><span class="glyphicon glyphicon-signal"></span>Last Campaign Results</h3>
117-
<div id="lastcampaigncontent" class="well">
117+
<div id="lastcampaigncontent" class="well">
118118
<?php if (empty($lastCampaignID)) {
119119
print '<p>' . s('There are currently no statistics available') . '</p>';
120120
} else {
@@ -129,13 +129,13 @@
129129
</span>
130130
</p>
131131

132-
<p><span class="total"><?php echo $lastcampaign['total'] ?></span> Messages sent on <span class="total"><?php echo $lastcampaign['sent'] ?></span>.</p>
133-
<p><span class="total"><?php echo number_format($lastcampaign['views']) ?> </span> Viewed (<span class="total"><?php echo sprintf('%d', ($lastcampaign['views'] / $lastcampaign['total'] * 100)) ?>%</span>), and <span class="total"><?php echo $lastcampaign['bounced'] ?></span> bounced (<span class="total"><?php echo sprintf('%d', ($lastcampaign['bounced'] / $lastcampaign['total'] * 100)) ?>%</span>).</p>
132+
<p><span class="total"><?php echo number_format($lastcampaign['total']) ?></span> Messages sent on <span class="total"><?php echo $lastcampaign['sent'] ?></span>.</p>
133+
<p><span class="total"><?php echo number_format($lastcampaign['views']) ?> </span> Viewed (<span class="total"><?php echo sprintf('%0.2f', ($lastcampaign['views'] / ($lastcampaign['total'] - $lastcampaign['bounced']) * 100)) ?>%</span>), and <span class="total"><?php echo $lastcampaign['bounced'] ?></span> bounced (<span class="total"><?php echo sprintf('%0.2f', ($lastcampaign['bounced'] / $lastcampaign['total'] * 100)) ?>%</span>).</p>
134134

135135
<?php
136136
} ?>
137137

138-
</div>
138+
</div>
139139
</div><!-- /col -->
140140

141141
<div class="clearfix visible-md visible-sm"></div>

0 commit comments

Comments
 (0)