Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Simbiat committed Apr 29, 2021
1 parent b2c6ccc commit bf194a8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/optimizeTables.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,7 @@ public function optimize(string $schema, bool $showstats = false, bool $silent =
}
}
} catch(\Exception $e) {
if ($silent === true) {
return false;
} else {
return $e->getMessage()."\r\n".$e->getTraceAsString();
}
return $e->getMessage()."\r\n".$e->getTraceAsString();
}
}

Expand Down Expand Up @@ -464,7 +460,7 @@ private function runMaintenance(string $schema, bool $on = true): bool
{
#Update CRON if supported
if ($this->cron !== NULL && $this->cronEnable === true) {
$this->cron>setSetting('enable', $on);
$this->cron->setSetting('enabled', ($on === true ? 0 : 1));
}
#Checking if the details for maintenance flag was provided
if ($this->getMaintenance() !== null) {
Expand Down

0 comments on commit bf194a8

Please sign in to comment.