com web/doc-editor: Fix: scripts/utils/static_stats.php
| From: | Yannick Torres | Date: | Thu, 07 Aug 2014 04:50:23 +0000 |
| Subject: | com web/doc-editor: Fix: scripts/utils/static_stats.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-12711@lists.php.net to get a copy of this message | ||
Commit: 908a59090cc6b5749c598bfdf8d03b1b97d9bf76
Author: Yannick Torrès <yannick.torres@gmail.com> Thu, 7 Aug 2014 06:50:23 +0200
Parents: e401ecaa1f30d5d5311b3a368fa1047b14957e52
Branches: master
Link: http://git.php.net/?p=web/doc-editor.git;a=commitdiff;h=908a59090cc6b5749c598bfdf8d03b1b97d9bf76
Log:
Fix
Changed paths:
M scripts/utils/static_stats.php
Diff:
diff --git a/scripts/utils/static_stats.php b/scripts/utils/static_stats.php
index 7db2eda..59c4047 100644
--- a/scripts/utils/static_stats.php
+++ b/scripts/utils/static_stats.php
@@ -4,7 +4,7 @@ require_once dirname(__FILE__) . '/../../php/DBConnection.php';
$nowDate = new DateTime();
-$year = ( isset($_GET['d']) ) ? $_GET['d'] :
$nowDate->format('Y');
+$year = (isset($_GET['d']) ? (integer) $_GET['d'] :
$nowDate->format('Y'));
$db = DBConnection::getInstance();