DataObjects/Period.php
authorAlan Knowles <alan@roojs.com>
Wed, 25 Feb 2015 06:23:33 +0000 (14:23 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 25 Feb 2015 06:23:33 +0000 (14:23 +0800)
DataObjects/Period.php

index 863b264..a62062e 100644 (file)
@@ -78,20 +78,7 @@ class Pman_Xtuple_DataObjects_Period extends DB_DataObject
     function initDatabase($roo)
     {
        
-         function initDatabase($roo)
-    {
-        $p = DB_DataObject::Factory('period');
-        if ($p->count()) {
-            echo "SKIP - already have periods\n";
-            return;
-        }
-        $p->initPeriods($this);
-        $p->initPeriods($this);
-        $p->initPeriods($this);
-        $p->initPeriods($this);
         
-    }
-       
         $this->initPeriods($roo);
     }