Skip to content

Commit

Permalink
fix fetch one row
Browse files Browse the repository at this point in the history
  • Loading branch information
Falko Trojahn committed Sep 26, 2024
1 parent 06a3caa commit 8d59b7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Command/CalImportCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
->execute();

// loop thru all external calendars by external calendar record
while ($record = $statement->fetchOne()) {
while ($record = $statement->fetchAssociative()) {
// collect messages per record
$msg = '';
$errormsg = '';
Expand Down
2 changes: 1 addition & 1 deletion Classes/Command/ResetLastrunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

// loop thru all external calendar records
$extcalcount = 0;
while ($record = $statement->fetchOne()) {
while ($record = $statement->fetchAssociative()) {
// reset record
$connection->update(
$table,
Expand Down

0 comments on commit 8d59b7f

Please sign in to comment.