|
From: <var...@us...> - 2021-07-02 17:18:03
|
Revision: 10345
http://sourceforge.net/p/phpwiki/code/10345
Author: vargenau
Date: 2021-07-02 17:17:56 +0000 (Fri, 02 Jul 2021)
Log Message:
-----------
PDO: fix fetchColumn call
Modified Paths:
--------------
trunk/lib/WikiDB/backend/PDO.php
Modified: trunk/lib/WikiDB/backend/PDO.php
===================================================================
--- trunk/lib/WikiDB/backend/PDO.php 2021-07-02 16:48:08 UTC (rev 10344)
+++ trunk/lib/WikiDB/backend/PDO.php 2021-07-02 17:17:56 UTC (rev 10345)
@@ -346,7 +346,7 @@
$sth = $dbh->prepare("SELECT cached_html FROM $page_tbl WHERE pagename=? LIMIT 1");
$sth->bindParam(1, $pagename, PDO::PARAM_STR, 100);
$sth->execute();
- return $sth->fetchColumn(PDO::FETCH_NUM);
+ return $sth->fetchColumn(0);
}
function set_cached_html($pagename, $data)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|