@@ -316,37 +316,26 @@ public function update_status($done=""){
316316
317317
318318 private function fix_migrations (){
319- $ res = $ this ->db ->query ("SELECT version FROM migrations " );
320- if ($ res ->num_rows () >0 ){
321- $ row = $ res ->row ();
322- $ version = $ row ->version ;
323-
324- if ($ version < 7 ){
325- $ this ->db ->query ("UPDATE migrations SET version=7 " );
326- }
327- }
328- }
319+ $ res = $ this ->db ->query ("SELECT version FROM migrations " );
320+ if ($ res ->num_rows () >0 ){
321+ $ row = $ res ->row ();
322+ $ version = $ row ->version ;
329323
330- public function check_missing_dxcc ($ all = false ){
331- $ this ->load ->model ('user_model ' );
332- if (!$ this ->user_model ->authorize (99 )) {
333- $ this ->session ->set_flashdata ('error ' , __ ("You're not allowed to do that! " ));
334- redirect ('dashboard ' );
324+ if ($ version < 7 ){
325+ $ this ->db ->query ("UPDATE migrations SET version=7 " );
326+ }
335327 }
336-
337- $ this ->load ->model ('logbook_model ' );
338- $ this ->logbook_model ->check_missing_dxcc_id ($ all );
339328 }
340329
341- public function check_missing_grid ($ all = false ){
330+ public function check_missing_dxcc ($ all = false ){
342331 $ this ->load ->model ('user_model ' );
343332 if (!$ this ->user_model ->authorize (99 )) {
344333 $ this ->session ->set_flashdata ('error ' , __ ("You're not allowed to do that! " ));
345334 redirect ('dashboard ' );
346335 }
347336
348- $ this ->load ->model ('logbook_model ' );
349- $ this ->logbook_model ->check_missing_grid_id ($ all );
337+ $ this ->load ->model ('logbook_model ' );
338+ $ this ->logbook_model ->check_missing_dxcc_id ($ all );
350339 }
351340
352341 public function update_clublog_scp () {
0 commit comments