File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class db extends mysqli
4242 private $ record = array (); // last record fetched
4343 private $ autoCommit = 1 ; // Autocommit Transactions
4444 private $ currentRow ; // current row number
45- private $ errorNumber = 0 ; // last error number
45+ public $ errorNumber = 0 ; // last error number
4646 public $ errorMessage = '' ; // last error message
4747 private $ errorLocation = '' ;// last error location
4848 public $ show_error_messages = false ; // false in server, true in interface
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ function processDatalog() {
139139 $ app ->db ->query ($ sql );
140140 if ($ app ->db ->errorNumber > 0 ) {
141141 $ replication_error = true ;
142- $ app ->log ("Replication failed. Error: ( " . $ d [dbtable] . ") in MySQL server: ( " .$ app ->db ->dbHost .") " . $ app ->db ->errorMessage . " # SQL: " . $ sql ,LOGLEVEL_ERROR );
142+ $ app ->log ("Replication failed. Error: ( " . $ d [' dbtable ' ] . ") in MySQL server: ( " .$ app ->db ->dbHost .") " . $ app ->db ->errorMessage . " # SQL: " . $ sql ,LOGLEVEL_ERROR );
143143 }
144144 $ app ->log ('Replicated from master: ' .$ sql ,LOGLEVEL_DEBUG );
145145 }
You can’t perform that action at this time.
0 commit comments