[geeklog-cvs] geeklog: Fixed preg_match overwriting $result variable
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Wed Feb 4 07:48:18 EST 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/f2c9ffac0fbc
changeset: 6762:f2c9ffac0fbc
user: Dirk Haun <dirk at haun-online.de>
date: Wed Feb 04 13:48:07 2009 +0100
description:
Fixed preg_match overwriting $result variable
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
system/classes/search.class.php | 4 ++--
diffs (14 lines):
diff -r 47b8386f2e94 -r f2c9ffac0fbc system/classes/search.class.php
--- a/system/classes/search.class.php Tue Feb 03 11:13:26 2009 +0100
+++ b/system/classes/search.class.php Wed Feb 04 13:48:07 2009 +0100
@@ -621,8 +621,8 @@
'uid' => $col_user == -1 ? ' ' : $old_row[$col_user],
'hits' => $col_hits == -1 ? '0' : str_replace(',', '', $old_row[$col_hits])
);
- preg_match('/href="([^"]+)"/i', $api_results['title'], $result);
- $api_results['url'] = empty($result) ? '#' : $result[1];
+ preg_match('/href="([^"]+)"/i', $api_results['title'], $links);
+ $api_results['url'] = empty($links) ? '#' : $links[1];
$obj->addResult($api_results);
}
More information about the geeklog-cvs
mailing list