szenczi
Posts: 67
|
Posted: 08/28/2013, 4:24 AM |
|
Hi,
A have got a record with a password field, which was built by the CCS record builder.
But, if I leave this field empty, I get the next php error:
Notice: Undefined index: in C:\wamp\akademianyelviskola\hozzaferes_events.php on line 293
Fatal error: Call to a member function GetValue() on a non-object in C:\wamp\akademianyelviskola\hozzaferes_events.php on line 293
This is the php code:
//a_adminisztrator_ds_BeforeBuildUpdate @53-3DD048C8
...
//Encrypt Password @216-411E8EB7
if ("" != $Component->DataSource->passwd->GetValue()) { $Component->DataSource->cp["passwd"]->SetValue(CCEncryptPasswordDB($Component->DataSource->cp["passwd"]->GetValue())); }
else {
[293] $Component->DataSource->cp["passwd"]->SetValue(CCDecryptString($Component->DataSource->cp[""]->GetValue(), CCS_ENCRYPTION_KEY_FOR_COOKIE)); }
//End Encrypt Password
What is the problem?
Thank you!
Norbert
_________________
CCS5.1, PhP, MySQL |
|
|
|