Minor changes
authorcamjan <jcampos004@ikasle.ehu.es>
Wed, 20 May 2015 12:52:36 +0000 (14:52 +0200)
committercamjan <jcampos004@ikasle.ehu.es>
Wed, 20 May 2015 12:52:36 +0000 (14:52 +0200)
ruralHouses/src/businessLogic/AccountManager.java

index ab418c9..705ef27 100644 (file)
@@ -44,9 +44,9 @@ public class AccountManager extends UnicastRemoteObject implements AccountInterf
        }
        
        public boolean removeAccount(int index)throws RemoteException {
-               OwnerManager own = new OwnerManager();
+               AdminManager adm = new AdminManager();
                try {
-                       if(this.dbMngr.removeAccount(own.getOwners().get(index)))
+                       if(this.dbMngr.removeAccount(adm.getAllOwners().get(index)))
                                return true;
                } catch (Exception e) {
                        e.printStackTrace();