summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-04-16 10:57:35 +0100
committerlsces <lester@lsces.co.uk>2026-04-16 10:57:35 +0100
commita77efe016535086907ffd1d9f01f756333774583 (patch)
tree2f5770f281515fd878fb7e72cb7203cace57cc87
parent195287f3bb3d66051c9c37f1031ccccdd0588199 (diff)
downloadarticles-5-php84.tar.gz
articles-5-php84.tar.bz2
articles-5-php84.zip
PHP8.4 style tweaksV5-php84
-rwxr-xr-xadmin/schema_inc.php10
-rwxr-xr-xincludes/classes/BitArticle.php2
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' );