Skip to content

Commit

Permalink
Add missing db lang entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Burchell committed Feb 13, 2024
1 parent 70d0a0e commit 057ddd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/database/DB_query_builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions system/language/english/db_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 057ddd0

Please sign in to comment.