Révision 3a832cbc
Ajouté par Jocelyn Delande il y a presque 11 ans
class/site_point.class.php | ||
---|---|---|
41 | 41 |
$params = parse_ini_file($this->params_path()); |
42 | 42 |
if ($params) { |
43 | 43 |
$this->params = $params; |
44 |
foreach ($params[self::$REF_KEY] as $ref => $vals) { |
|
45 |
$bits = explode(',',$vals); |
|
46 |
$this->params[self::$REF_KEY][$ref] = array(floatval($bits[0]), |
|
47 |
floatval($bits[1])); |
|
44 |
if (isset($params[self::$REF_KEY])) { |
|
45 |
foreach ($params[self::$REF_KEY] as $ref => $vals) { |
|
46 |
$bits = explode(',',$vals); |
|
47 |
$this->params[self::$REF_KEY][$ref] = array(floatval($bits[0]), |
|
48 |
floatval($bits[1])); |
|
49 |
} |
|
48 | 50 |
} |
49 | 51 |
if (isset($params['image_loop'])) { |
50 | 52 |
$this->params['image_loop'] = (bool)($params['image_loop']); |
Formats disponibles : Unified diff
Added sanity checks