use strstr

This commit is contained in:
Miles Lott 2004-01-26 14:02:12 +00:00
parent 17340424c1
commit 5a548e387d

View File

@ -127,7 +127,7 @@
$lines = $GLOBALS['phpgw']->network->gethttpsocketfile('http://www.egroupware.org/currentversion'); $lines = $GLOBALS['phpgw']->network->gethttpsocketfile('http://www.egroupware.org/currentversion');
for($i=0; $i<count($lines); $i++) for($i=0; $i<count($lines); $i++)
{ {
if (ereg('currentversion',$lines[$i])) if(strstr($lines[$i],'currentversion'))
{ {
$line_found = explode(':',chop($lines[$i])); $line_found = explode(':',chop($lines[$i]));
} }