待辦事項 #9328

l193,194,195,196class\xoopsform\form.php
啟用日期: 2006-11-04 04:34 最後更新: 2006-11-05 15:19

回報者:
負責人:
狀態:
關閉
元件:
(無)
里程碑:
(無)
優先權:
6
嚴重程度:
5 - 中
處理結果:
Accepted
檔案:

細節

I receive a email with a possible problem with the
lines 193,194,195,196 of form.php file:

if (!$this->_elements[$i]->isContainer()) {
$ret[] =& $this->_elements[$i];
} else {
$elements =&
$this->_elements[$i]->getElements(true);


Her sollution:


if(!is_object($this->_elements[$i])){
$ret[] =& $this->_elements[$i];
}elseif (!$this->_elements[$i]->isContainer()) {
$ret[] =& $this->_elements[$i];
} else {
$elements =& $this->_elements[$i]->getElements(true);


Her explanation in portuguese: O problema é que a
função "insertBreak" aceita strings, mas a getElements
que estava antes, ao fazer um loop por todos os
elementos do formulário, esperava que todos fossem
objetos. A alteração verifica antes se o elemento é
mesmo um objeto, para que possa usar as funções dele
sem dar problemas.

Ticket History (3/5 Histories)

2006-11-04 05:29 Updated by: mikhail
評語
Logged In: YES
user_id=24765

Original:
http://br.groups.yahoo.com/group/xoopscube/message/3397
2006-11-04 05:33 Updated by: mikhail
  • 優先權 Update from 5 - 中 to 6
  • (群組 change on Tracker)
2006-11-05 14:18 Updated by: minahito
  • 負責人 Update from (無) to minahito
  • (類別 change on Tracker)
  • 處理結果 Update from to Accepted
2006-11-05 15:19 Updated by: minahito
評語
Logged In: YES
user_id=8353

Thank you for your report & patch! I've just fixed.
2006-11-05 15:19 Updated by: minahito
  • Ticket Close date is changed to 2006-11-05 15:19
  • 狀態 Update from 開啟 to 關閉

Attachment File List

No attachments

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入