Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing db lang entries #6268

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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';
Loading