mirror of
https://github.com/friendica/friendica
synced 2024-11-17 16:23:46 +00:00
Check if table exists
This commit is contained in:
parent
88b3effc18
commit
4585335db9
1 changed files with 4 additions and 0 deletions
|
@ -1148,6 +1148,10 @@ function update_1502()
|
|||
|
||||
function update_1505()
|
||||
{
|
||||
if (!DBStructure::existsTable('config')) {
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
$conditions = [
|
||||
"((`cat` = ?) AND ((`k` LIKE ?) OR (`k` = ?) OR (`k` LIKE ?) OR (`k` = ?))) OR " .
|
||||
"((`cat` != ?) AND (`k` LIKE ?)) OR " .
|
||||
|
|
Loading…
Reference in a new issue