Skip to content

Commit

Permalink
Fixed type strictness errors in AED controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Graham committed Jul 20, 2012
1 parent 4c8f05e commit f780f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/aed_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ function ad()
}
}

if (!is_object($this->add_text)) $this->add_text=make_string_tempcode($this->add_text);
if (!is_object($this->add_text)) $this->add_text=make_string_tempcode(is_null($this->add_text)?'':$this->add_text);
if ($this->user_facing)
{
if (($this->care_please) && (do_lang('CARE_PLEASE')!='')) $this->add_text->attach(paragraph(do_lang_tempcode('CARE_PLEASE')));
Expand Down Expand Up @@ -1038,7 +1038,7 @@ function _ed()
}
$fields2->attach($action_fields);

if (!is_object($this->edit_text)) $this->edit_text=make_string_tempcode($this->edit_text);
if (!is_object($this->edit_text)) $this->edit_text=make_string_tempcode(is_null($this->edit_text)?'':$this->edit_text);
if (!is_null($this->upload))
{
if ($this->upload=='image')
Expand Down

0 comments on commit f780f21

Please sign in to comment.