rabin 3 vuotta sitten
vanhempi
commit
70d94b70ec
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/Company.php

+ 1 - 1
src/Company.php

@@ -53,7 +53,7 @@ class Company extends Save
         if (!$company_id) {
             $company = $this->getData();
             if ($company) {
-                $company_id = $company['id'];
+                $company_id = $company[0]['id'];
                 $this->set($company_id);
             }
         }