|
From: <var...@us...> - 2021-09-01 16:12:08
|
Revision: 10527
http://sourceforge.net/p/phpwiki/code/10527
Author: vargenau
Date: 2021-09-01 16:12:07 +0000 (Wed, 01 Sep 2021)
Log Message:
-----------
PDO.php: better check $id
Modified Paths:
--------------
trunk/lib/WikiDB/backend/PDO.php
Modified: trunk/lib/WikiDB/backend/PDO.php
===================================================================
--- trunk/lib/WikiDB/backend/PDO.php 2021-08-17 16:44:58 UTC (rev 10526)
+++ trunk/lib/WikiDB/backend/PDO.php 2021-09-01 16:12:07 UTC (rev 10527)
@@ -384,7 +384,7 @@
if (!$create_if_missing) {
return $id;
}
- if (!$id) {
+ if (empty($id)) {
//mysql, mysqli or mysqlt
if (substr($dbh->databaseType, 0, 5) == 'mysql') {
// have auto-incrementing, atomic version
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|