diff --git a/core/lib/Drupal/Core/Database/Statement.php b/core/lib/Drupal/Core/Database/Statement.php index 1f1194c..4c4204d 100644 --- a/core/lib/Drupal/Core/Database/Statement.php +++ b/core/lib/Drupal/Core/Database/Statement.php @@ -120,7 +120,7 @@ public function fetchAssoc() { public function rowCount() { // SELECT query should not use the method. if ($this->allowRowCount) { - parent::rowCount(); + return parent::rowCount(); } else { throw new RowCountException();