projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
modules
/
statistics
/
src
/
StatisticsViewsResult.php
diff --git
a/web/core/modules/statistics/src/StatisticsViewsResult.php
b/web/core/modules/statistics/src/StatisticsViewsResult.php
index ef0db9775e79783b9e34f9cd7f9cc487e3b7a569..55f454589cb5dc7b41616c26eee91141f0d98c82 100644
(file)
--- a/
web/core/modules/statistics/src/StatisticsViewsResult.php
+++ b/
web/core/modules/statistics/src/StatisticsViewsResult.php
@@
-23,9
+23,9
@@
class StatisticsViewsResult {
protected $timestamp;
public function __construct($total_count, $day_count, $timestamp) {
protected $timestamp;
public function __construct($total_count, $day_count, $timestamp) {
- $this->totalCount = $total_count;
- $this->dayCount = $day_count;
- $this->timestamp = $timestamp;
+ $this->totalCount =
(int)
$total_count;
+ $this->dayCount =
(int)
$day_count;
+ $this->timestamp =
(int)
$timestamp;
}
/**
}
/**
@@
-37,7
+37,6
@@
class StatisticsViewsResult {
return $this->totalCount;
}
return $this->totalCount;
}
-
/**
* Total number of times the entity has been viewed "today".
*
/**
* Total number of times the entity has been viewed "today".
*
@@
-47,7
+46,6
@@
class StatisticsViewsResult {
return $this->dayCount;
}
return $this->dayCount;
}
-
/**
* Timestamp of when the entity was last viewed.
*
/**
* Timestamp of when the entity was last viewed.
*