mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +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