PHP8 warning
[Pman.Core] / RooPostTrait.php
index a2e1d27..9f6b9c9 100644 (file)
@@ -2,6 +2,8 @@
 
 trait Pman_Core_RooPostTrait {
     
+    var $old;
+    
     /**
      * POST method   Roo/TABLENAME  
      * -- creates, updates, or deletes data.
@@ -170,7 +172,8 @@ trait Pman_Core_RooPostTrait {
         
         $affects  = array();
         
-        $all_links = $GLOBALS['_DB_DATAOBJECT']['LINKS'][$x->_database];
+        $all_links = $x->databaseLinks();
+        
         foreach($all_links as $tbl => $links) {
             foreach($links as $col => $totbl_col) {
                 $to = explode(':', $totbl_col);