mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
use strstr
This commit is contained in:
parent
17340424c1
commit
5a548e387d
2
home.php
2
home.php
@ -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]));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user