Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Imported From: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/477e8e3bb9610a8d#

...

Code Block
firstline1540
titlecore/kernel/application.php

...

linenumberstrue
 function HREF($t, $prefix = '', $params = null, $index_file = null)

Default "null" value for "$params" variable causes following code to trigger "array______
default-defining variable $params here that way causes code at line
1566:
______
  if key_exists(): The second argument should be either an array or an object" notice:

Code Block
firstline1566
titlecore/kernel/application.php
linenumberstrue
if (array_key_exists('use_section', $params)) {

...

to trigger error: "array_key_exists(): The second argument should be
either an array or an object".

According to general development rules this should be changed either
toeither to:
______
  function  

Code Block
function HREF($t, $prefix = '', $params = Array(), $index_file =

...

 null)

...

 

or: ______
  if

Code Block
if (is_array($params) && array_key_exists('use_section', $params)) {

...