summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lsces@lsces.co.uk>2010-12-08 10:47:34 +0000
committerLester Caine <lsces@lsces.co.uk>2010-12-08 10:47:34 +0000
commit9dea71d31454b31da1da41dda384338fd96dfca2 (patch)
tree35c250b243a96adf2023b62d3d074e15992fcb55
parent10b4f0effa6daad4108dee1dec32b403cea1e46d (diff)
downloadcontact-9dea71d31454b31da1da41dda384338fd96dfca2.tar.gz
contact-9dea71d31454b31da1da41dda384338fd96dfca2.tar.bz2
contact-9dea71d31454b31da1da41dda384338fd96dfca2.zip
Refresh cached data after database update
-rw-r--r--Contact.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Contact.php b/Contact.php
index 1796c5e..0ff998d 100644
--- a/Contact.php
+++ b/Contact.php
@@ -618,7 +618,8 @@ class Contact extends LibertyContent {
$this->mInfo['xref_title'] = $xref->mContentId;
$this->mInfo['xref_store'] = $xref->mInfo;
$pParamHash['xref_id'] = $xref->mXrefId;
-
+ $this->load();
+
return true;
} else return false;
}
@@ -632,6 +633,8 @@ class Contact extends LibertyContent {
if ( $xref->stepXref( $pParamHash ) ) {
$this->mInfo['xref_title'] = $xref->mContentId;
$this->mInfo['xref_store'] = $xref->mInfo;
+ $this->load();
+
return true;
} else return false;
}