@@ -203,7 +203,7 @@ public function getBlocksSolvedbyWorker($account_id, $limit=25) {
203
203
public function updateShareStatistics ($ aStats , $ iBlockId ) {
204
204
$ this ->debug ->append ("STA " . __METHOD__ , 4 );
205
205
$ stmt = $ this ->mysqli ->prepare ("INSERT INTO $ this ->table (account_id, valid, invalid, block_id) VALUES (?, ?, ?, ?) " );
206
- if ($ this ->checkStmt ($ stmt ) && $ stmt ->bind_param ('iiii ' , $ aStats ['id ' ], $ aStats ['valid ' ], $ aStats ['invalid ' ], $ iBlockId ) && $ stmt ->execute ()) return true ;
206
+ if ($ this ->checkStmt ($ stmt ) && $ stmt ->bind_param ('iddi ' , $ aStats ['id ' ], $ aStats ['valid ' ], $ aStats ['invalid ' ], $ iBlockId ) && $ stmt ->execute ()) return true ;
207
207
return $ this ->sqlError ();
208
208
}
209
209
@@ -213,7 +213,7 @@ public function updateShareStatistics($aStats, $iBlockId) {
213
213
public function insertPPLNSStatistics ($ aStats , $ iBlockId ) {
214
214
$ this ->debug ->append ("STA " . __METHOD__ , 4 );
215
215
$ stmt = $ this ->mysqli ->prepare ("INSERT INTO $ this ->table (account_id, valid, invalid, pplns_valid, pplns_invalid, block_id) VALUES (?, ?, ?, ?, ?, ?) " );
216
- if ($ this ->checkStmt ($ stmt ) && $ stmt ->bind_param ('iiiiii ' , $ aStats ['id ' ], $ aStats ['valid ' ], $ aStats ['invalid ' ], $ aStats ['pplns_valid ' ], $ aStats ['pplns_invalid ' ], $ iBlockId ) && $ stmt ->execute ()) return true ;
216
+ if ($ this ->checkStmt ($ stmt ) && $ stmt ->bind_param ('iddddi ' , $ aStats ['id ' ], $ aStats ['valid ' ], $ aStats ['invalid ' ], $ aStats ['pplns_valid ' ], $ aStats ['pplns_invalid ' ], $ iBlockId ) && $ stmt ->execute ()) return true ;
217
217
return $ this ->sqlError ();
218
218
}
219
219
0 commit comments