|
|
@ -2701,6 +2701,10 @@ class LAMCfgMain { |
|
|
|
*/ |
|
|
|
public function importData($data) { |
|
|
|
foreach ($data as $dataKey => $dataValue) { |
|
|
|
if (!in_array($dataKey, $this->settings)) { |
|
|
|
logNewMessage(LOG_WARNING, 'Ignored setting during import: ' . $dataKey); |
|
|
|
continue; |
|
|
|
} |
|
|
|
if (!(is_array($dataValue) || is_string($dataValue) || is_int($dataValue) || is_bool($dataValue))) { |
|
|
|
throw new LAMException('Invalid import data type for ' . htmlspecialchars($dataKey) . ': ' . gettype($dataValue)); |
|
|
|
} |
|
|
|