We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8eacab commit bc78485Copy full SHA for bc78485
1 file changed
application/libraries/Grocery_CRUD.php
@@ -853,7 +853,7 @@ protected function db_update_validation()
853
$this->basic_model->where($primary_key,$state_info->primary_key);
854
$row = $this->basic_model->get_row();
855
856
- if(!isset($row->$field_name)) {
+ if(!property_exists($row, $field_name)) {
857
throw new Exception("The field name doesn't exist in the database. ".
858
"Please use the unique fields only for fields ".
859
"that exist in the database");
0 commit comments