diff --git a/includes/Hooks.php b/includes/Hooks.php index e4852e220f..519bd8e49d 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -582,7 +582,7 @@ class Hooks implements ->field( '1' ) ->where( [ 'rev_actor' => $user->getActorId(), - 'rev_timestamp < ' . $dbr->addQuotes( $dbr->timestamp( + $dbr->expr( 'rev_timestamp', '<', $dbr->timestamp( $config->get( 'VisualEditorSingleEditTabSwitchTime' ) ) ) ] )