If we have multiple fields for encryption... what is proper code for utlizing 'if (!$inline)'
I thought I had this functioning OK, with the following code:
if (!$inline)
$values["FIELD1"] = encrypt($values["FIELD1"]);
$values["FIELD2"] = encrypt($values["FIELD2"]);
HOWEVER the first field is OK and the second "FIELD2" is deleted if doing inline edit on third field.
MY QUESTION: what is proper code for utlizing 'if (!$inline)' with multiple fields?
if (!$inline)
$values["FIELD1"] = encrypt($values["FIELD1"]);
$values["FIELD2"] = encrypt($values["FIELD2"]);
$values["FIELD3"] = encrypt($values["FIELD3"]);
OR
if (!$inline)
$values["FIELD1"] = encrypt($values["FIELD1"]);
if (!$inline)
$values["FIELD2"] = encrypt($values["FIELD2"]);
if (!$inline)
$values["FIELD3"] = encrypt($values["FIELD3"]);
OR is it another method?
All feedback is welcomed.