Skip to content

Commit c0de7b8

Browse files
authored
Merge pull request #610 from electerious/develop
Lychee 3.1.4
2 parents 18f2397 + 3e3dfb0 commit c0de7b8

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

dist/main.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Changelog.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v3.1.4
2+
3+
Released August 28, 2016
4+
5+
- `Fixed` Search stopped working because of an undefined index error (#605)
6+
- `Fixed` Better next/previous photo check to prevent an error when opening an album with only one photo
7+
18
## v3.1.3
29

310
Released August 22, 2016

php/helpers/search.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function search($term) {
2121
* Photos
2222
*/
2323

24-
$query = Database::prepare(Database::get(), "SELECT id, title, tags, public, star, album, thumbUrl, takestamp, url FROM ? WHERE title LIKE '%?%' OR description LIKE '%?%' OR tags LIKE '%?%'", array(LYCHEE_TABLE_PHOTOS, $term, $term, $term));
24+
$query = Database::prepare(Database::get(), "SELECT id, title, tags, public, star, album, thumbUrl, takestamp, url, medium FROM ? WHERE title LIKE '%?%' OR description LIKE '%?%' OR tags LIKE '%?%'", array(LYCHEE_TABLE_PHOTOS, $term, $term, $term));
2525
$result = Database::execute(Database::get(), $query, __METHOD__, __LINE__);
2626

2727
if ($result===false) return false;

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Lychee",
3-
"version": "3.1.3",
3+
"version": "3.1.4",
44
"description": "Self-hosted photo-management done right.",
55
"authors": "Tobias Reich <[email protected]>",
66
"license": "MIT",

src/scripts/lychee.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
lychee = {
77

88
title : document.title,
9-
version : '3.1.3',
10-
versionCode : '030103',
9+
version : '3.1.4',
10+
versionCode : '030104',
1111

1212
updatePath : '//update.electerious.com/index.json',
1313
updateURL : 'https://github.com/electerious/Lychee',

src/scripts/view.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ view.photo = {
413413
let $nextArrow = lychee.imageview.find('a#next')
414414
let $previousArrow = lychee.imageview.find('a#previous')
415415
let photoID = photo.getID()
416-
let hasNext = album.json && album.json.content && album.json.content[photoID] && album.json.content[photoID].nextPhoto!==''
417-
let hasPrevious = album.json && album.json.content && album.json.content[photoID] && album.json.content[photoID].previousPhoto!==''
416+
let hasNext = album.json && album.json.content && album.json.content[photoID] && album.json.content[photoID].nextPhoto!=null && album.json.content[photoID].nextPhoto!==''
417+
let hasPrevious = album.json && album.json.content && album.json.content[photoID] && album.json.content[photoID].previousPhoto!=null && album.json.content[photoID].previousPhoto!==''
418418

419419
if (hasNext===false || lychee.viewMode===true) {
420420

0 commit comments

Comments
 (0)