Skip to content

Commit

Permalink
Preliminary fix for some warnings when displaying watched statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
julmud committed Jan 9, 2025
1 parent c8664c0 commit 13efb3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ws.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,8 +788,8 @@ function get_months($uid, $firstname, $lastname) {
$mucnt = 0;
$row = $db->sql_fetch_array($sql4);
$db->sql_freeresult($sql4);
$mrt = $row['runningtime'];
$mcnt = $row['count'];
$mrt = $row == null ? 0 : $row['runningtime'];
$mcnt = $row == null ? 0 : $row['count'];
$mavg = 0;
if ($mcnt <> 0) $mavg = intval($mrt / $mcnt);

Expand Down

0 comments on commit 13efb3a

Please sign in to comment.