Dotclear

Changeset 2491:3e71f78cbdb1


Ignore:
Timestamp:
10/25/13 01:00:04 (12 years ago)
Author:
Denis Jean-Chirstian <contact@…>
Branch:
2.6
Message:

Fix perms on plugin maintenance

Location:
plugins/maintenance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/maintenance/inc/class.dc.maintenance.task.php

    r2044 r2491  
    5656          $this->core = $maintenance->core; 
    5757          $this->init(); 
     58          $this->id = null; 
    5859 
    5960          if ($this->perm() === null && !$this->core->auth->isSuperAdmin() 
  • plugins/maintenance/index.php

    r2483 r2491  
    7474 
    7575          foreach($tasks as $t) { 
     76               if (!$t->id()) { 
     77                    continue; 
     78               } 
     79 
    7680               if (!empty($_POST['settings_recall_type']) && $_POST['settings_recall_type'] == 'all') { 
    7781                    $ts = $_POST['settings_recall_time']; 
     
    201205               foreach($tasks as $t) 
    202206               { 
    203                     if ($t->group() != $group_obj->id()  
     207                    if (!$t->id()  
     208                     || $t->group() != $group_obj->id()  
    204209                     || $t->tab() != $tab_obj->id()) { 
    205210                         continue; 
     
    263268     foreach($tasks as $t) 
    264269     { 
    265           if ($t->group() !== null) { 
     270          if (!$t->id() || $t->group() !== null) { 
    266271               continue; 
    267272          } 
     
    313318     foreach($tasks as $t) 
    314319     { 
     320          if (!$t->id()) { 
     321               continue; 
     322          }  
    315323          echo 
    316324          '<div class="two-boxes">'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map