diff --git a/assets/js/lychee.js b/assets/js/lychee.js index 48049d5..eb44c24 100644 --- a/assets/js/lychee.js +++ b/assets/js/lychee.js @@ -8,8 +8,8 @@ var lychee = { title: "", - version: "2.6.2", - version_code: "020602", + version: "2.6.3", + version_code: "020603", api_path: "php/api.php", update_path: "http://lychee.electerious.com/version/index.php", diff --git a/build/package.json b/build/package.json index 410a55d..4ba169e 100644 --- a/build/package.json +++ b/build/package.json @@ -1,6 +1,6 @@ { "name": "Lychee", - "version": "2.6.2", + "version": "2.6.3", "description": "Self-hosted photo-management done right.", "authors": "Tobias Reich ", "license": "MIT", diff --git a/php/modules/Database.php b/php/modules/Database.php index 7a275b9..f947591 100755 --- a/php/modules/Database.php +++ b/php/modules/Database.php @@ -23,7 +23,7 @@ class Database extends Module { # Avoid sql injection on older MySQL versions by using GBK if ($database->server_version<50500) $database->set_charset('GBK'); else $database->set_charset("utf8"); - + # Set unicode $database->query('SET NAMES utf8;'); @@ -44,6 +44,7 @@ class Database extends Module { # Check dependencies Module::dependencies(isset($database, $dbName)); + if (!isset($version)) return true; # List of updates $updates = array( @@ -59,7 +60,7 @@ class Database extends Module { # For each update foreach ($updates as $update) { - if (isset($version)&&$update<=$version) continue; + if ($update<=$version) continue; # Load update include(__DIR__ . '/../database/update_' . $update . '.php');