Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
BomAle Posted May 21, 2018 Posted May 21, 2018 I would suggest to improve following code: #system/Task/Task.php:64-79 /* Task completed successfully and a new offset was returned - store the value and then return it */ /*....*/ $newData = json_encode( $json ); /* Did it change?? */ if ( $newData !== $json ) { $queueData['data'] = $newData; \IPS\Db::i()->update( 'core_queue', array( 'data' => $newData ), array( 'id=?', $queueData['id'] ) ); } FIX: $newData !== $queueData['data'] tested with 4.3.1
BomAle Posted May 22, 2018 Author Posted May 22, 2018 1 hour ago, bfarber said: Can you say why? string is not equal to object, and also if you do $newData !== json_encode($json) it is a no sense, the purpose is another (compare new data with older changed by Reference after "run" is called)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.