Alexander Nicolaysen Sørnes : util: Replace split() calls in search functions as it is deprecated in newer versions
Alexander Nicolaysen Sørnes
asornes at winehq.org
Sun Dec 13 17:02:36 CST 2009
Module: appdb
Branch: master
Commit: da35126ebca59a5f13d7c9aa79047ceb242d1374
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=da35126ebca59a5f13d7c9aa79047ceb242d1374
Author: Alexander Nicolaysen Sørnes <alexander at linux-xqqm.(none)>
Date: Sun Dec 13 21:01:53 2009 +0100
util: Replace split() calls in search functions as it is deprecated in newer versions
---
include/util.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/util.php b/include/util.php
index 7eba466..e856aff 100644
--- a/include/util.php
+++ b/include/util.php
@@ -404,7 +404,7 @@ function cleanupSearchWords($search_words)
$filtered_search = "";
/* search each word in $search_words */
- $split_words = split(" ", $search_words);
+ $split_words = explode(" ", $search_words);
$removed_words = '';
foreach($split_words as $key=>$value)
@@ -501,7 +501,7 @@ function searchForApplication($search_words, $iExcludeAppId = null)
/* remove any search words less than 4 letters */
$split_words = array();
- $split_search_words = split(" ", $search_words);
+ $split_search_words = explode(" ", $search_words);
foreach($split_search_words as $key=>$value)
{
if(strlen($value) >= 4)
More information about the wine-cvs
mailing list