[geeklog-cvs] geeklog: strftime needs a long as the second parameter

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Tue Feb 3 05:13:57 EST 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/47b8386f2e94
changeset: 6761:47b8386f2e94
user:      Dirk Haun <dirk at haun-online.de>
date:      Tue Feb 03 11:13:26 2009 +0100
description:
strftime needs a long as the second parameter

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
system/classes/search.class.php |    2 +-

diffs (12 lines):

diff -r 237435f67e18 -r 47b8386f2e94 system/classes/search.class.php
--- a/system/classes/search.class.php	Tue Feb 03 11:11:23 2009 +0100
+++ b/system/classes/search.class.php	Tue Feb 03 11:13:26 2009 +0100
@@ -731,7 +731,7 @@
                 $row['description'] = stripslashes($this->_shortenText($this->_query, $row['description'], $this->_wordlength));
             }
 
-            $row['date'] = strftime($_CONF['daytime'], $row['date']);
+            $row['date'] = strftime($_CONF['daytime'], intval($row['date']));
             $row['hits'] = COM_NumberFormat($row['hits']) . ' '; // simple solution to a silly problem!
         }
 



More information about the geeklog-cvs mailing list