2014
05.16

Finding this evil bug was driving me crazy a lot of hours.

$_SESSION["q"] = array('dotaz' => $_GET["q"]);

When trying rewrite existing $_SESSION[„q“] it flattened the array and it could not be any more enhanced again to array.

After replacing with this „same result“ snippet it works.

unset($_SESSION["q"]);
$_SESSION["q"] = array();
$_SESSION["q"]['dotaz'] = $_GET["q"];

PHP Version 5.3.10 used. (PHP Version 5.3.24 worked fine)

Comments are closed.

ENVATO FLASH STOCK ENVATO THEME FOREST

CBDB.cz - moje knihy