PHP7 compatibility fixes.
[fa-stable.git] / includes / ui / allocation_cart.inc
index f51046b064aaf2b4fe3b4c497f14f805224c0f71..b45110b35ade07d366eb4a8622f81e7d9b93ee0f 100644 (file)
@@ -30,7 +30,7 @@ class allocation
 
        var $allocs; /*array of transactions allocated to */
 
-       function allocation($type, $trans_no, $person_id = null, $person_type_id=null)
+       function __construct($type, $trans_no, $person_id = null, $person_type_id=null)
        {
                $this->allocs = array();
                
@@ -254,7 +254,7 @@ class allocation_item
        
        var $current_allocated;
        
-       function allocation_item ($type, $type_no, $date_, $due_date, $amount, 
+       function __construct($type, $type_no, $date_, $due_date, $amount, 
                $amount_allocated, $current_allocated, $ref)
        {