Added SQLite3 OO layer, old one did not work for PHP 5.4+
PDO SQlite3 is preferrable though
This commit is contained in:
@ -72,7 +72,7 @@ if ($serendipity['GET']['adminAction'] == 'doDelete' && serendipity_checkFormTok
|
||||
$remaining_cat = (int)$serendipity['POST']['cat']['remaining_catid'];
|
||||
$category_ranges = serendipity_fetchCategoryRange((int)$serendipity['GET']['cid']);
|
||||
$category_range = implode(' AND ', $category_ranges);
|
||||
if ($serendipity['dbType'] == 'postgres' || $serendipity['dbType'] == 'sqlite' || $serendipity['dbType'] == 'sqlite3' || $serendipity['dbType'] == 'pdo-sqlite') {
|
||||
if ($serendipity['dbType'] == 'postgres' || $serendipity['dbType'] == 'sqlite' || $serendipity['dbType'] == 'sqlite3' || $serendipity['dbType'] == 'sqlite3oo' || $serendipity['dbType'] == 'pdo-sqlite') {
|
||||
$query = "UPDATE {$serendipity['dbPrefix']}entrycat
|
||||
SET categoryid={$remaining_cat} WHERE entryid IN
|
||||
(
|
||||
|
Reference in New Issue
Block a user