X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_domain.php;h=89b4587d89ac788db1df77c3e76500b0525ffb08;hp=3ac00faa65fb817ea29da4755b6c823685234399;hb=HEAD;hpb=23c1f1c3f623285c4e255786b06ff78fdfd9bf1e diff --git a/DataObjects/Core_domain.php b/DataObjects/Core_domain.php index 3ac00faa..3c50da42 100644 --- a/DataObjects/Core_domain.php +++ b/DataObjects/Core_domain.php @@ -1,8 +1,36 @@ tableName()); + if ($cd->get('domain', $dom)) { + $cache[$dom] = $cd; + return $cd; + } + $cd->domain = $dom; + $cd->insert(); + $cache[$dom] = $cd; + return $cd; + } +}