Skip to content

Commit

Permalink
phpdocs and var initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 17, 2010
1 parent 497e2fe commit a8ff948
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2193,7 +2193,7 @@ function print_collapsible_region_end($return = false) {
*
* @global object
* @uses CONTEXT_COURSE
* @param array $group A single {@link group} object OR array of groups.
* @param array|stdClass $group A single {@link group} object OR array of groups.
* @param int $courseid The course ID.
* @param boolean $large Default small picture, or large.
* @param boolean $return If false print picture, otherwise return the output as string
Expand Down
1 change: 1 addition & 0 deletions user/profile/field/checkbox/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function edit_field_add(&$mform) {
* Display the data for this field
*/
function display_data() {
$options = new object();
$options->para = false;
$checked = intval($this->data) === 1 ? 'checked="checked"' : '';
return '<input disabled="disabled" type="checkbox" name="'.$this->inputname.'" '.$checked.' />';
Expand Down
10 changes: 4 additions & 6 deletions user/profile/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,10 @@ function profile_category_icons($category) {
function profile_field_icons($field) {
global $CFG, $USER, $DB, $OUTPUT;

if (empty($str)) {
$strdelete = get_string('delete');
$strmoveup = get_string('moveup');
$strmovedown = get_string('movedown');
$stredit = get_string('edit');
}
$strdelete = get_string('delete');
$strmoveup = get_string('moveup');
$strmovedown = get_string('movedown');
$stredit = get_string('edit');

$fieldcount = $DB->count_records('user_info_field', array('categoryid'=>$field->categoryid));
$datacount = $DB->count_records('user_info_data', array('fieldid'=>$field->id));
Expand Down

0 comments on commit a8ff948

Please sign in to comment.