|
|
@ -162,7 +162,7 @@ function admin_import() {
|
|
|
|
|
|
|
|
|
|
|
|
list($rooms_new, $rooms_deleted) = prepare_rooms($import_file);
|
|
|
|
list($rooms_new, $rooms_deleted) = prepare_rooms($import_file);
|
|
|
|
foreach ($rooms_new as $room) {
|
|
|
|
foreach ($rooms_new as $room) {
|
|
|
|
$result = Room_create($name, true, true);
|
|
|
|
$result = Room_create($room, true, true);
|
|
|
|
if ($result === false)
|
|
|
|
if ($result === false)
|
|
|
|
engelsystem_error('Unable to create room.');
|
|
|
|
engelsystem_error('Unable to create room.');
|
|
|
|
$rooms_import[trim($room)] = sql_id();
|
|
|
|
$rooms_import[trim($room)] = sql_id();
|
|
|
|