Skip to content

Commit

Permalink
Merge pull request #610 from electerious/develop
Browse files Browse the repository at this point in the history
Lychee 3.1.4
  • Loading branch information
electerious committed Aug 28, 2016
2 parents 18f2397 + 3e3dfb0 commit c0de7b8
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
6 changes: 3 additions & 3 deletions dist/main.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## v3.1.4

Released August 28, 2016

- `Fixed` Search stopped working because of an undefined index error (#605)
- `Fixed` Better next/previous photo check to prevent an error when opening an album with only one photo

## v3.1.3

Released August 22, 2016
Expand Down
2 changes: 1 addition & 1 deletion php/helpers/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function search($term) {
* Photos
*/

$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));
$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));
$result = Database::execute(Database::get(), $query, __METHOD__, __LINE__);

if ($result===false) return false;
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Lychee",
"version": "3.1.3",
"version": "3.1.4",
"description": "Self-hosted photo-management done right.",
"authors": "Tobias Reich <[email protected]>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/lychee.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
lychee = {

title : document.title,
version : '3.1.3',
versionCode : '030103',
version : '3.1.4',
versionCode : '030104',

updatePath : '//update.electerious.com/index.json',
updateURL : 'https://github.com/electerious/Lychee',
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ view.photo = {
let $nextArrow = lychee.imageview.find('a#next')
let $previousArrow = lychee.imageview.find('a#previous')
let photoID = photo.getID()
let hasNext = album.json && album.json.content && album.json.content[photoID] && album.json.content[photoID].nextPhoto!==''
let hasPrevious = album.json && album.json.content && album.json.content[photoID] && album.json.content[photoID].previousPhoto!==''
let hasNext = album.json && album.json.content && album.json.content[photoID] && album.json.content[photoID].nextPhoto!=null && album.json.content[photoID].nextPhoto!==''
let hasPrevious = album.json && album.json.content && album.json.content[photoID] && album.json.content[photoID].previousPhoto!=null && album.json.content[photoID].previousPhoto!==''

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

Expand Down

0 comments on commit c0de7b8

Please sign in to comment.