Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Feb 9, 2019
1 parent 847b0d1 commit b8866fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions objects/video_statistic.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ static function create($videos_id, $currentTime=0) {
}

static function updateStatistic($videos_id, $users_id, $lastVideoTime){
if(empty($users_id)){
return false;
}
$lastStatistic = self::getLastStatistics($videos_id, $users_id);
if(empty($lastStatistic)){
$vs = new VideoStatistic(0);
Expand Down Expand Up @@ -192,6 +189,9 @@ function setIp($ip) {

function setUsers_id($users_id) {
$this->users_id = intval($users_id);
if(empty($this->users_id)){
$this->users_id = 'null';
}
}

function setVideos_id($videos_id) {
Expand Down

0 comments on commit b8866fb

Please sign in to comment.