fix data add

This commit is contained in:
CHIEFSOFT\ameye
2024-11-28 16:47:52 -05:00
parent a2b3ed4d0c
commit eb4bc69a14
@@ -42,16 +42,13 @@ class WrenchUserContacts extends BaseController
$outC = $this->getCache($endpoint); // try find in cache
if ( $in["mmode"] == 0 ){
$in["raw_contacts_0"] = $in["raw_contacts"]; // extra store raw
$this->deleteCache($endpoint);
$in["raw_contacts_". $in["mmode"]] = $in["raw_contacts"]; // extra store raw
// $in["raw_contacts"] =$outC["raw_contacts"].$in["raw_contacts"]; // expand raw contents
$this->saveCache($endpoint,$in,5300);
}
else
{
$outC = $this->getCache($endpoint); // try find in cache
$outArr = $outC; // unserialize( $outC );
$outC["raw_contacts_". $in["mmode"]] = $in["raw_contacts"]; // extra store raw
$outC["raw_contacts"] =$outC["raw_contacts"].$in["raw_contacts"]; // expand raw contents