|
From: <var...@us...> - 2021-09-06 17:22:03
|
Revision: 10546
http://sourceforge.net/p/phpwiki/code/10546
Author: vargenau
Date: 2021-09-06 17:22:01 +0000 (Mon, 06 Sep 2021)
Log Message:
-----------
Add braces
Modified Paths:
--------------
trunk/lib/WikiDB/backend/PDO.php
Modified: trunk/lib/WikiDB/backend/PDO.php
===================================================================
--- trunk/lib/WikiDB/backend/PDO.php 2021-09-06 17:19:47 UTC (rev 10545)
+++ trunk/lib/WikiDB/backend/PDO.php 2021-09-06 17:22:01 UTC (rev 10546)
@@ -1307,6 +1307,9 @@
/*
* LIMIT with OFFSET is not SQL specified.
+ *
+ * This function must be overloaded in specific backends.
+ *
* mysql: LIMIT $offset, $count
* pgsql,sqlite: LIMIT $count OFFSET $offset
* InterBase,FireBird: ROWS $offset TO $last
@@ -1329,10 +1332,12 @@
if ($offset) {
$limit = " LIMIT $count";
trigger_error("unsupported OFFSET in SQL ignored", E_USER_WARNING);
- } else
+ } else {
$limit = " LIMIT $count";
- } else
+ }
+ } else {
$limit = '';
+ }
return $limit;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|