Dotclear

Changeset 1775:fd4b24fb574d for inc


Ignore:
Timestamp:
09/10/13 11:29:38 (12 years ago)
Author:
Dsls
Branch:
default
Message:

Much better this way, see #1564

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.admincombos.php

    r1774 r1775  
    3030     @return   <b>array</b> the combo box (form::combo -compatible format) 
    3131     */ 
    32      public static function getCategoriesCombo($categories) { 
    33           $categories_combo[__('(No cat)')] = ''; 
     32     public static function getCategoriesCombo($categories,$include_empty = true) { 
     33          $categories_combo = array(); 
     34          if ($include_empty) { 
     35               $categories_combo = array(new formSelectOption(__('(no cat)'),'')); 
     36          } 
    3437          while ($categories->fetch()) { 
    3538               $categories_combo[] = new formSelectOption ( 
Note: See TracChangeset for help on using the changeset viewer.

Sites map