diff options
| author | lsces <lester@lsces.co.uk> | 2026-04-16 10:57:35 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-04-16 10:57:35 +0100 |
| commit | a77efe016535086907ffd1d9f01f756333774583 (patch) | |
| tree | 2f5770f281515fd878fb7e72cb7203cace57cc87 | |
| parent | 195287f3bb3d66051c9c37f1031ccccdd0588199 (diff) | |
| download | articles-a77efe016535086907ffd1d9f01f756333774583.tar.gz articles-a77efe016535086907ffd1d9f01f756333774583.tar.bz2 articles-a77efe016535086907ffd1d9f01f756333774583.zip | |
PHP8.4 style tweaksV5-php84
| -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' ); |
