Fork me on GitHub
Subscribe 2

Ticket #501 (fixed bug)

Undefined index notices in error function

  • Created: 2011-10-04 00:05:56
  • Reported by: Franz
  • Assigned to: daris
  • Milestone: 1.4.8
  • Component: code
  • Priority: low

When $pun_config hasn't been populated yet (during installation), the error() function still assumes it is.

I don't know which other functions could be called during install that assume similar things, but this should at least be fixed for this function.

http://fluxbb.org/forums/viewtopic.php?id=5799

History

Franz 2011-10-12 12:08:14

  • Owner set to Franz.

daris 2011-11-30 14:46:33

What do you think about following?
https://github.com/daris/fluxbb/commit/ … e1f53039d7

We can set $pun_config variable during install and these notices won't show up smile

BTW these notices from the referenced topic shows because the $pun_config is not empty (like error function checks) - it has o_default_language set in this line

daris 2011-11-30 14:47:54

Merge that commit to fluxbb-1.4 ?

Franz 2011-11-30 15:59:49

  • Owner changed from Franz to daris.

Good idea, go for it.

daris 2011-11-30 16:06:29

Commit 9c7b56a to fluxbb fluxbb-1.4

#501 Set the $pun_config variable during installation to avoid showing undefined index notices

daris 2011-11-30 16:11:14

  • Status changed from open to fixed.