worked around stupid php5.2 empty haystack warnings

This commit is contained in:
Ralf Becker 2007-04-29 14:43:55 +00:00
parent 09f556d5d4
commit 95b0f50d12

View File

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