diff --git a/plugin/MonetizeUsers/View/report.php b/plugin/MonetizeUsers/View/report.php index 5ac2f89e19..7941b2ae64 100644 --- a/plugin/MonetizeUsers/View/report.php +++ b/plugin/MonetizeUsers/View/report.php @@ -25,55 +25,50 @@ foreach ($rows as $key => $value) { $chartDataCount[] = $value['count']; } ?> -
-
-
-
-
- -
-
+
+
+
+

-
-
-
- - - - - - - - - - - +
+ +
+
Watched DateRewardViewsVideos
+ + + + + + + + + + '; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - } - ?> - -
Watched DateRewardViewsVideos
' . $row['date_hour'] . '' . YPTWallet::formatCurrency($row['reward']) . '' . $row['count'] . ''; - $records = array(); - foreach ($row['data'] as $key => $recordData) { - $link = Video::getLinkToVideo($recordData['videos_id']); - $records[] = "".($key+1)." - [{$recordData['record_created']}] ".strip_tags($recordData['title']).""; - } - echo implode('
', $records); - echo '
-
+ foreach ($reversedRows as $row) { + echo ''; + echo '' . $row['date_hour'] . ''; + echo '' . YPTWallet::formatCurrency($row['reward']) . ''; + echo '' . $row['count'] . ''; + echo ''; + $records = array(); + foreach ($row['data'] as $key => $recordData) { + $link = Video::getLinkToVideo($recordData['videos_id']); + $records[] = "" . ($key + 1) . " - [{$recordData['record_created']}] " . strip_tags($recordData['title']) . ""; + } + echo implode('
', $records); + echo ''; + echo ''; + } + ?> + +
- -
diff --git a/plugin/VideosStatistics/VideosStatistics.php b/plugin/VideosStatistics/VideosStatistics.php index 66de1abe24..bf9ebd7c5d 100644 --- a/plugin/VideosStatistics/VideosStatistics.php +++ b/plugin/VideosStatistics/VideosStatistics.php @@ -285,10 +285,8 @@ class VideosStatistics extends PluginAbstract { $obj->totalLikes += $video->total_likes; $obj->totalDislikes += $video->total_dislikes; } - } else { - die($sql . '\nError : (' . $global['mysqli']->errno . ') ' . $global['mysqli']->error); } - + if (!empty($obj->videos)) { usort( $obj->videos, diff --git a/plugin/YPTWallet/view/history.php b/plugin/YPTWallet/view/history.php index 64d7606750..7f217f6be5 100644 --- a/plugin/YPTWallet/view/history.php +++ b/plugin/YPTWallet/view/history.php @@ -52,6 +52,10 @@ if (!empty($_GET['users_id'])) {