diff options
| -rwxr-xr-x | admin/schema_inc.php | 10 | ||||
| -rwxr-xr-x | includes/classes/BitArticle.php | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 6f40c0e..f036298 100755 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -69,11 +69,11 @@ $gBitInstaller->registerPackageInfo( ARTICLES_PKG_NAME, array( // these sequences are automatically generated, but Firebird and MSSQL prefers they exist // Starting the numbering off at 5 for types to allow room for the INSERTs later. -$sequences = array ( - 'articles_topics_id_seq' => array( 'start' => 1 ), - 'article_types_id_seq' => array( 'start' => 5 ), - 'articles_article_id_seq' => array( 'start' => 1 ), -); +$sequences = [ + 'articles_topics_id_seq' => [ 'start' => 1 ], + 'article_types_id_seq' => [ 'start' => 5 ], + 'articles_article_id_seq' => [ 'start' => 1 ], +]; $gBitInstaller->registerSchemaSequences( ARTICLES_PKG_NAME, $sequences ); diff --git a/includes/classes/BitArticle.php b/includes/classes/BitArticle.php index 2c3323a..5cce917 100755 --- a/includes/classes/BitArticle.php +++ b/includes/classes/BitArticle.php @@ -682,7 +682,7 @@ class BitArticle extends LibertyMime if ( @$this->verifyId( $pArticleId ) ) { $sql = "UPDATE `".BIT_DB_PREFIX."articles` SET `status_id` = ? WHERE `article_id` = ?"; - $rs = $this->mDb->query( $sql, array( $pStatusId, $pArticleId )); + $rs = $this->mDb->query( $sql, [ $pStatusId, $pArticleId ]); // Calling the index function for approved articles ... if ( $gBitSystem->isPackageActive( 'search' ) ) { include_once( SEARCH_PKG_PATH.'refresh_functions.php' ); |
