aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_html.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index bdb89eace..7fe37a42e 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -29,6 +29,11 @@ function get_icon( $date )
{
global $user, $conf, $lang;
+ if (!preg_match('/\d{4}-\d{2}-\d{2}/', $date))
+ {
+ return '';
+ }
+
list( $year,$month,$day ) = explode( '-', $date );
$unixtime = mktime( 0, 0, 0, $month, $day, $year );