Skip to content

Commit

Permalink
Update DB.php
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberpower678 committed Jun 2, 2023
1 parent 94cbabe commit ad42c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/Core/DB.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function __construct( API $commObject ) {

public static function getCheckpoint( $force = false ) {
if( defined( 'NOCHECKPOINT' ) ) return [];

if( empty( self::$checkPoint ) || $force ) {
if( empty( UNIQUEID ) ) $query =
"SELECT * FROM externallinks_checkpoints WHERE wiki = '" . WIKIPEDIA . "';";
Expand Down Expand Up @@ -697,7 +697,7 @@ public static function createCheckpointsTable() {
if( self::query( "CREATE TABLE IF NOT EXISTS `externallinks_checkpoints` (
`checkpoint_id` INT(6) NOT NULL AUTO_INCREMENT,
`unique_id` VARCHAR(15),
`wiki` VARCHAR(15) NOT NULL,
`wiki` VARCHAR(45) NOT NULL,
`checkpoint` BLOB NOT NULL,
`c` BLOB NOT NULL,
`stats` BLOB NOT NULL,
Expand Down

0 comments on commit ad42c71

Please sign in to comment.