@@ -686,7 +686,7 @@ public function getDatabaseSize($database_name) {
686686 }
687687
688688 //** Function to fill the datalog with a full differential record.
689- public function datalogSave ($ db_table , $ action , $ primary_field , $ primary_id , $ record_old , $ record_new , $ force_update = false , $ options = [] ) {
689+ public function datalogSave ($ db_table , $ action , $ primary_field , $ primary_id , $ record_old , $ record_new , $ force_update = false ) {
690690 global $ app ;
691691
692692 // Insert backticks only for incomplete table names.
@@ -712,7 +712,6 @@ public function datalogSave($db_table, $action, $primary_field, $primary_id, $re
712712 $ server_id = (isset ($ record_old ['server_id ' ]) && $ record_old ['server_id ' ] > 0 )?$ record_old ['server_id ' ]:0 ;
713713 if (isset ($ record_new ['server_id ' ])) $ server_id = $ record_new ['server_id ' ];
714714
715- $ diffrec_full ['options ' ] = $ options ;
716715
717716 if ($ diff_num > 0 ) {
718717 $ diffstr = serialize ($ diffrec_full );
@@ -811,7 +810,7 @@ public function datalogUpdate($tablename, $update_data, $index_field, $index_val
811810 }
812811
813812 //** Deletes a record and saves the changes into the datalog
814- public function datalogDelete ($ tablename , $ index_field , $ index_value, $ options = [] ) {
813+ public function datalogDelete ($ tablename , $ index_field , $ index_value ) {
815814 global $ app ;
816815
817816 // Check fields
@@ -821,7 +820,7 @@ public function datalogDelete($tablename, $index_field, $index_value, $options =
821820 $ old_rec = $ this ->queryOneRecord ("SELECT * FROM ?? WHERE ?? = ? " , $ tablename , $ index_field , $ index_value );
822821 $ this ->query ("DELETE FROM ?? WHERE ?? = ? " , $ tablename , $ index_field , $ index_value );
823822 $ new_rec = array ();
824- $ this ->datalogSave ($ tablename , 'DELETE ' , $ index_field , $ index_value , $ old_rec , $ new_rec, FALSE , $ options );
823+ $ this ->datalogSave ($ tablename , 'DELETE ' , $ index_field , $ index_value , $ old_rec , $ new_rec );
825824
826825 return true ;
827826 }
0 commit comments