Backward compatibility with PHP-4.0.6: array_key_exists() -> isset()
authorshort <>
Sun, 24 Mar 2002 01:42:29 +0000 (01:42 +0000)
committershort <>
Sun, 24 Mar 2002 01:42:29 +0000 (01:42 +0000)
index.php

index 12a3190..dced3ef 100644 (file)
--- a/index.php
+++ b/index.php
@@ -113,7 +113,7 @@ function hiddens($array,$doinputs)
        global $permanents_array;
        $r="";
        foreach ($permanents_array as $key)
-               if (!array_key_exists($key,$array) && isset($GLOBALS[$key]))
+               if (!isset($key,$array) && isset($GLOBALS[$key]))
                        $array[$key]=$GLOBALS[$key];
        foreach ($array as $key=>$val) {
                if ($doinputs)