[dev] IMP: Search Patch...
Marc Jauvin
marc at register4less.com
Thu Jun 12 12:26:05 PDT 2003
Here is a patch that fixes IMP Search by date (Was badly broken recently).
Please, commit.
--
Marc Jauvin
450-441-5458
http://register4less.com
-------------- next part --------------
Index: lib/IMAP/Search.php
===================================================================
RCS file: /repository/horde/lib/IMAP/Search.php,v
retrieving revision 1.13
diff -u -r1.13 Search.php
--- lib/IMAP/Search.php 11 Jun 2003 21:01:17 -0000 1.13
+++ lib/IMAP/Search.php 12 Jun 2003 19:22:41 -0000
@@ -470,7 +470,7 @@
/* IMAP Date Search. */
function _imapDate($day, $month, $year, $cmd)
{
- $this->_query = $cmd . ' ' . date("%d-%M-%y", mktime(0, 0, 0, $month, $day, $year));
+ $this->_query = $cmd . ' ' . date("d-M-Y", mktime(0, 0, 0, $month, $day, $year));
}
function before($day, $month, $year)
Index: imp/lib/Search.php
===================================================================
RCS file: /repository/imp/lib/Search.php,v
retrieving revision 1.24
diff -u -r1.24 Search.php
--- imp/lib/Search.php 30 May 2003 07:32:31 -0000 1.24
+++ imp/lib/Search.php 12 Jun 2003 19:23:48 -0000
@@ -139,7 +139,7 @@
($year = Horde::getFormData('search_' . $date . '_year')) &&
preg_match('/^\d{4}$/', $year)) {
$ob = &new IMAP_Search_Query();
- $ob->$searchdate($day, $month, $year);
+ $ob->$date($day, $month, $year);
$search_array[] = &$ob;
}
}
More information about the dev
mailing list