Changeset 1775:fd4b24fb574d for inc
- Timestamp:
- 09/10/13 11:29:38 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.admincombos.php
r1774 r1775 30 30 @return <b>array</b> the combo box (form::combo -compatible format) 31 31 */ 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 } 34 37 while ($categories->fetch()) { 35 38 $categories_combo[] = new formSelectOption (
Note: See TracChangeset
for help on using the changeset viewer.