initialize $versions earlier

This commit is contained in:
Uwe Steinmann 2014-04-11 11:11:38 +02:00
parent a8aea2ff93
commit bd9ab4ac87

View File

@ -30,9 +30,9 @@ if (!$user->isAdmin()) {
}
$v = new SeedDMS_Version;
$versions = array();
if(@ini_get('allow_url_fopen') == '1') {
$lines = @file('http://www.seeddms.org/latest', FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
$versions = array();
if($lines) {
foreach($lines as $line) {
$versions[] = explode(':', $line);