Check if table exists
This commit is contained in:
parent
88b3effc18
commit
4585335db9
|
@ -1148,6 +1148,10 @@ function update_1502()
|
||||||
|
|
||||||
function update_1505()
|
function update_1505()
|
||||||
{
|
{
|
||||||
|
if (!DBStructure::existsTable('config')) {
|
||||||
|
return Update::SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
$conditions = [
|
$conditions = [
|
||||||
"((`cat` = ?) AND ((`k` LIKE ?) OR (`k` = ?) OR (`k` LIKE ?) OR (`k` = ?))) OR " .
|
"((`cat` = ?) AND ((`k` LIKE ?) OR (`k` = ?) OR (`k` LIKE ?) OR (`k` = ?))) OR " .
|
||||||
"((`cat` != ?) AND (`k` LIKE ?)) OR " .
|
"((`cat` != ?) AND (`k` LIKE ?)) OR " .
|
||||||
|
|
Loading…
Reference in New Issue
Block a user