summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthinca <thinca@gmail.com>2013-05-30 17:21:14 +0900
committerPaul Arthur <paul.arthur@flowerysong.com>2013-05-30 13:04:27 -0400
commitc394d515818e5e68bbadf00782551c9dd01ad17e (patch)
tree0cc0acbd2849d98013cf561d7f69417751ba8c37
parent78d220fbd50452fbb662444edc076730ea6c3d5a (diff)
downloadampache-c394d515818e5e68bbadf00782551c9dd01ad17e.tar.gz
ampache-c394d515818e5e68bbadf00782551c9dd01ad17e.tar.bz2
ampache-c394d515818e5e68bbadf00782551c9dd01ad17e.zip
Use the correct operator for 'before date' rules
-rwxr-xr-xdocs/CHANGELOG.md2
-rw-r--r--lib/class/search.class.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 775b05e9..7ea34bc9 100755
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -3,6 +3,8 @@ CHANGELOG
3.6-FUTURE
----------
+- Fixed date searches using 'before' to use the correct comparison
+ (patch by thinca)
- Fixed long-standing issue affecting Synology users (patch by NigridsVa)
- Added support for MySQL sockets (based on patches by randomessence)
- Fixed some issues with the logic around memory_limit (reported by CableNinja)
diff --git a/lib/class/search.class.php b/lib/class/search.class.php
index 5dbabf5f..bf85d890 100644
--- a/lib/class/search.class.php
+++ b/lib/class/search.class.php
@@ -179,7 +179,7 @@ class Search extends playlist_object {
$this->basetypes['date'][] = array(
'name' => 'lt',
'description' => T_('before'),
- 'sql' => '>'
+ 'sql' => '<'
);
$this->basetypes['date'][] = array(