Dotclear

Changeset 2464:c70429e9bfa8


Ignore:
Timestamp:
10/19/13 21:29:30 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Message:

Prevents inexistant pref in categories.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/categories.php

    r2342 r2464  
    4646          $cat_id = (int) $keys[0]; 
    4747          $mov_cat = (int) $_POST['mov_cat'][$cat_id]; 
    48            
     48 
    4949          $mov_cat = $mov_cat ? $mov_cat : null; 
    5050          if ($mov_cat !== null) { 
     
    103103 
    104104$starting_script = ""; 
     105 
     106$core->auth->user_prefs->addWorkspace('accessibility'); 
    105107if (!$core->auth->user_prefs->accessibility->nodragdrop 
    106108     && $core->auth->check('categories',$core->blog->id) 
     
    161163          } 
    162164 
    163           echo    
     165          echo 
    164166          '<p class="cat-title"><label class="classic" for="cat_'.$rs->cat_id.'"><a href="category.php?id='.$rs->cat_id.'">'.html::escapeHTML($rs->cat_title).'</a></label> </p>'. 
    165167          '<p class="cat-nb-posts">(<a href="posts.php?cat_id='.$rs->cat_id.'">'. 
     
    173175               // remove current category 
    174176               echo 
    175                '<label>'.__('Move entries to').'</label> '.               
     177               '<label>'.__('Move entries to').'</label> '. 
    176178               form::combo(array('mov_cat['.$rs->cat_id.']', 'mov_cat_'.$rs->cat_id),array_filter($categories_combo, create_function('$cat', 'return $cat->value!=$GLOBALS[\'rs\']->cat_id;')),'',''). 
    177179               ' <input type="submit" class="reset" name="mov['.$rs->cat_id.']" value="'.__('OK').'"/>'; 
    178               
     180 
    179181               $attr_disabled = ' disabled="disabled"'; 
    180182               $input_class = 'disabled '; 
     
    183185               $input_class = ''; 
    184186          } 
    185           echo  
     187          echo 
    186188          ' <input type="submit"'.$attr_disabled.' class="'.$input_class.'delete" name="delete['.$rs->cat_id.']" value="'.__('Delete category').'"/>'. 
    187189          '</p>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map