diff --git a/modules/base/crawlReferralCli.php b/modules/base/crawlReferralCli.php index 3a920802..72176a23 100644 --- a/modules/base/crawlReferralCli.php +++ b/modules/base/crawlReferralCli.php @@ -69,7 +69,10 @@ public function updateReferrer($id) $r = owa_coreAPI::entityFactory('base.referer'); $r->load($id); $r->crawlReferer(); - $r->update(); + + if ( $r->isDirty() ) { + $r->update(); + } } public function updateAllReferrer()