Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -41,7 +41,7 @@ class _Databases
|
||||
{
|
||||
if ( \IPS\Db::i()->checkForTable( 'cms_databases' ) )
|
||||
{
|
||||
foreach ( \IPS\Db::i()->select( '*', 'cms_databases') as $db )
|
||||
foreach ( \IPS\Db::i()->select( '*', 'cms_databases' ) as $db )
|
||||
{
|
||||
/* The content router only returns databases linked to pages. In theory, you may have linked a database and then removed it,
|
||||
so the method to remove all app content from the search index fails, so we need to account for that here: */
|
||||
@@ -61,14 +61,14 @@ class _Databases
|
||||
$tables = array();
|
||||
try
|
||||
{
|
||||
$databaseTables = \IPS\Db::i()->query("SHOW TABLES LIKE '" . \IPS\Db::i()->prefix . "cms_custom_database_%'" )->fetch_assoc();
|
||||
$databaseTables = \IPS\Db::i()->query( "SHOW TABLES LIKE '" . \IPS\Db::i()->prefix . "cms_custom_database_%'" )->fetch_assoc();
|
||||
if ( $databaseTables )
|
||||
{
|
||||
foreach( $databaseTables as $row )
|
||||
{
|
||||
if( \is_array( $row ) )
|
||||
{
|
||||
$tables[] = array_pop($row);
|
||||
$tables[] = array_pop( $row );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user