Skip to content

Commit c515729

Browse files
committed
More import script improvements
1 parent d42c00e commit c515729

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

data/import_yellow_pages.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
'Buildings',
3131
'Copy Centers',
3232
'Religious Groups',
33-
'Fax Access Numbers',
34-
'Vice Chancellors',
35-
'UNOPA (University of Nebraska Office Professionals Association)',
36-
'Operated By Follett Higher Education Group University Bookstore',
37-
'UN Computing Services Network (University of Nebraska Central Administration)',
38-
'UAAD Officers & Non-Committee Chair Executive Board',
39-
'Administration',
40-
'Colleges',
41-
'Graduate Assistants',
33+
//'Fax Access Numbers',
34+
//'Vice Chancellors',
35+
//'UNOPA (University of Nebraska Office Professionals Association)',
36+
//'Operated By Follett Higher Education Group University Bookstore',
37+
//'UN Computing Services Network (University of Nebraska Central Administration)',
38+
//'UAAD Officers & Non-Committee Chair Executive Board',
39+
//'Administration',
40+
//'Colleges',
41+
//'Graduate Assistants',
4242
) as $semi_official_dept_name) {
4343
if (!($semi_official = UNL_Officefinder_Department::getByname($semi_official_dept_name))) {
4444
$semi_official = new UNL_Officefinder_Department();

data/minor_data_cleanups.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
if ($dept === false) {
1515
$dept = UNL_Officefinder_Department::getByName($old);
1616
}
17-
$dept->name = $new;
18-
$dept->save();
17+
if ($dept) {
18+
$dept->name = $new;
19+
$dept->save();
20+
}
1921
}
2022
foreach (array('University Communications Scarlet The\'') as $delete) {
2123
$dept = UNL_Officefinder_Department::getByOrg_unit($delete);

0 commit comments

Comments
 (0)