[geeklog-cvs] geeklog: Out stripos() emulation threw an error on PHP 4 when $n...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Oct 31 16:49:58 EDT 2009
changeset 7420:aa4bb7a5514e
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/aa4bb7a5514e
user: Dirk Haun <dirk at haun-online.de>
date: Sat Oct 31 18:34:19 2009 +0100
description:
Out stripos() emulation threw an error on PHP 4 when $needle was empty (bug #0001008)
diffstat:
public_html/docs/history | 1 +
system/classes/search.class.php | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r 751bf49fc6f4 -r aa4bb7a5514e public_html/docs/history
--- a/public_html/docs/history Sat Oct 31 18:20:09 2009 +0100
+++ b/public_html/docs/history Sat Oct 31 18:34:19 2009 +0100
@@ -3,6 +3,7 @@
Nov 1, 2009 (1.6.1)
-----------
+- Searching by author threw an error on PHP 4 (bug #0001008) [Dirk]
- Moved the functionality of the toinnodb.php script into the Database Backups
admin panel [Dirk]
- Added an option to optimze tables to the Database Backups admin panel [Dirk]
diff -r 751bf49fc6f4 -r aa4bb7a5514e system/classes/search.class.php
--- a/system/classes/search.class.php Sat Oct 31 18:20:09 2009 +0100
+++ b/system/classes/search.class.php Sat Oct 31 18:34:19 2009 +0100
@@ -940,6 +940,8 @@
{
if (function_exists('stripos')) {
return stripos($haystack, $needle);
+ } elseif (empty($needle)) {
+ return false;
} else {
return strpos(strtolower($haystack), strtolower($needle));
}
More information about the geeklog-cvs
mailing list