Skip to content

Commit bc78485

Browse files
committed
scoumbourdis#451: Replace the isset with property_exists
1 parent d8eacab commit bc78485

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

application/libraries/Grocery_CRUD.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ protected function db_update_validation()
853853
$this->basic_model->where($primary_key,$state_info->primary_key);
854854
$row = $this->basic_model->get_row();
855855

856-
if(!isset($row->$field_name)) {
856+
if(!property_exists($row, $field_name)) {
857857
throw new Exception("The field name doesn't exist in the database. ".
858858
"Please use the unique fields only for fields ".
859859
"that exist in the database");

0 commit comments

Comments
 (0)