chore: Minor code changes.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-05-16 11:37:50 +02:00
parent 9f4af8c28e
commit 4715cb2b8e
2 changed files with 5 additions and 5 deletions

View File

@@ -350,9 +350,9 @@ interface ConfigDataInterface
public function setCheckUpdates(?bool $checkUpdates): ConfigDataInterface;
/**
* @return string
* @return string|null
*/
public function getConfigHash();
public function getConfigHash(): ?string;
/**
* Generates a hash from current config options
@@ -891,9 +891,9 @@ interface ConfigDataInterface
public function jsonSerialize();
/**
* @return string
* @return string|null
*/
public function getConfigSaver();
public function getConfigSaver(): ?string;
/**
* @param string|null $configSaver

View File

@@ -86,7 +86,7 @@ class DatabaseUtil
{
try {
self::getConnection()
->exec(sprintf('DROP USER \'%s\'@\'%s\'', $user, $host));
->exec(sprintf('DROP USER IF EXISTS \'%s\'@\'%s\'', $user, $host));
} catch (Exception $e) {
processException($e);
}