From 057ddd0c8ecf81194c279df98294a805f0fbfcaa Mon Sep 17 00:00:00 2001 From: Jamie Burchell Date: Tue, 13 Feb 2024 09:15:01 +0000 Subject: [PATCH] Add missing db lang entries --- system/database/DB_query_builder.php | 4 ++-- system/language/english/db_lang.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php index de6aa04fc08..d04ec680241 100644 --- a/system/database/DB_query_builder.php +++ b/system/database/DB_query_builder.php @@ -1568,7 +1568,7 @@ public function insert_batch($table, $set = NULL, $escape = NULL, $batch_size = { if (empty($set)) { - return ($this->db_debug) ? $this->display_error('insert_batch() called with no data') : FALSE; + return ($this->db_debug) ? $this->display_error('db_data_required', 'insert_batch()') : FALSE; } $this->set_insert_batch($set, '', $escape); @@ -1985,7 +1985,7 @@ public function update_batch($table, $set = NULL, $index = NULL, $batch_size = 1 { if (empty($set)) { - return ($this->db_debug) ? $this->display_error('update_batch() called with no data') : FALSE; + return ($this->db_debug) ? $this->display_error('db_data_required', 'update_batch()') : FALSE; } $this->set_update_batch($set, $index); diff --git a/system/language/english/db_lang.php b/system/language/english/db_lang.php index 1bf424e57d2..4e3261f63a8 100644 --- a/system/language/english/db_lang.php +++ b/system/language/english/db_lang.php @@ -62,3 +62,4 @@ $lang['db_column_definition_required'] = 'A column definition is required for that operation.'; $lang['db_unable_to_set_charset'] = 'Unable to set client connection character set: %s'; $lang['db_error_heading'] = 'A Database Error Occurred'; +$lang['db_data_required'] = '%s called with no data';