$NetBSD: patch-ag,v 1.3 2007/05/20 15:56:46 taca Exp $ --- plugins/calendar/functions.inc.orig 2006-12-22 00:44:21.000000000 +0900 +++ plugins/calendar/functions.inc @@ -1457,11 +1457,11 @@ function plugin_dopluginsearch_calendar( $sql .= "OR title LIKE '%$mysearchterm%') "; } - if (!empty($dateStart) AND !empty($dateEnd)) { - $delim = substr($dateStart, 4, 1); + if (!empty($datestart) AND !empty($dateend)) { + $delim = substr($datestart, 4, 1); if (!empty($delim)) { - $DS = explode($delim, $dateStart); - $DE = explode($delim, $dateEnd); + $DS = explode($delim, $datestart); + $DE = explode($delim, $dateend); $startdate = mktime(0, 0, 0, $DS[1], $DS[2], $DS[0]); $enddate = mktime(23, 59, 59, $DE[1], $DE[2], $DE[0]); $sql .= "AND (UNIX_TIMESTAMP(datestart) BETWEEN '$startdate' AND '$enddate') ";