Archived
1
0

* More PHP 5.3.0 compat (split()).

This commit is contained in:
Garvin Hicking
2009-08-25 19:39:17 +00:00
parent 6407727fe6
commit 275589423a
7 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ function serendipity_db_limit($start, $offset) {
* @return SQL string containing a full LIMIT statement
*/
function serendipity_db_limit_sql($limitstring) {
$limit_split = split(',', $limitstring);
$limit_split = explode(',', $limitstring);
if (count($limit_split) > 1) {
$limit = ' LIMIT ' . $limit_split[0] . ' OFFSET ' . $limit_split[1];
} else {
+1 -1
View File
@@ -100,7 +100,7 @@ function serendipity_db_limit($start, $offset) {
* @return SQL string containing a full LIMIT statement
*/
function serendipity_db_limit_sql($limitstring) {
$limit_split = split(',', $limitstring);
$limit_split = explode(',', $limitstring);
if (count($limit_split) > 1) {
$limit = ' LIMIT ' . $limit_split[0] . ' OFFSET ' . $limit_split[1];
} else {
+1 -1
View File
@@ -388,7 +388,7 @@ function serendipity_db_limit_sql($limitstring) {
return ' LIMIT ' . $limitstring;
case "postgresql":
$limit;
$limit_split = split(',', $limitstring);
$limit_split = explode(',', $limitstring);
if (count($limit_split) > 1) {
$limit = ' LIMIT ' . $limit_split[0] . ' OFFSET ' . $limit_split[1];
} else {