SF.net SVN: phpwiki:[10950] trunk/lib/WikiDB/backend/PDO.php

vargenau--- via phpwiki-checkins <[email protected]> Thu, 27 Jan 2022 14:41:03 +0000
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10950
          http://sourceforge.net/p/phpwiki/code/10950
Author:   vargenau
Date:     2022-01-27 14:41:03 +0000 (Thu, 27 Jan 2022)
Log Message:
-----------
Add size for PDO::PARAM_STR

Modified Paths:
--------------
    trunk/lib/WikiDB/backend/PDO.php

Modified: trunk/lib/WikiDB/backend/PDO.php
===================================================================
--- trunk/lib/WikiDB/backend/PDO.php	2022-01-27 13:58:39 UTC (rev 10949)
+++ trunk/lib/WikiDB/backend/PDO.php	2022-01-27 14:41:03 UTC (rev 10950)
@@ -1348,7 +1348,7 @@
         $sth->bindParam(11, $entry->size, PDO::PARAM_INT);
         $sth->bindParam(12, $entry->referer, PDO::PARAM_STR, 255);
         $sth->bindParam(13, $entry->user_agent, PDO::PARAM_STR, 255);
-        $sth->bindParam(14, $entry->duration, PDO::PARAM_STR);
+        $sth->bindParam(14, $entry->duration, PDO::PARAM_STR, 20);
         $sth->execute();
     }
 }

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.