Fixed wrong version in database update error

This commit is contained in:
Tobias Reich 2014-10-11 16:04:43 +02:00
parent 82ab9a7167
commit b458ff2a85

View File

@ -35,7 +35,7 @@ if ($result->num_rows===0) {
$query = Database::prepare($database, "INSERT INTO `?` (`key`, `value`) VALUES ('imagick', '1')", array(LYCHEE_TABLE_SETTINGS)); $query = Database::prepare($database, "INSERT INTO `?` (`key`, `value`) VALUES ('imagick', '1')", array(LYCHEE_TABLE_SETTINGS));
$result = $database->query($query); $result = $database->query($query);
if (!$result) { if (!$result) {
Log::error($database, 'update_020100', __LINE__, 'Could not update database (' . $database->error . ')'); Log::error($database, 'update_020602', __LINE__, 'Could not update database (' . $database->error . ')');
return false; return false;
} }
} }