Jump to content

noobified

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

noobified's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. so could I use for e.g. !empty on the array to check it, and if so how would I do it
  2. I would still like to know how to fix it as I like to code everything with E_ALL.
  3. I'm trying to fix an old phpnuke script called sommaire. Sommaire is like an advanced menu system.I have a massive amount of errors when I set error reporting to E_ALL, I know this can be turned off but I would also like to understand what the problem is.All the errors I am getting seem to me Undefined Index's and Offsets. e.g. [23-Sep-2008 15:11:03] PHP Notice: Undefined index: 0 in sommaire.php on line 967 now the code relevant to this is 964 $now = time(); 965 if (strpos($days_link[$groupmenu[$keysommaire]][$z],'8')!==false || $now<$date_debut_link[$groupmenu[$keysommaire]][$z] || ($date_fin_link[$groupmenu[$keysommaire]][$z]>0 && $now>$date_fin_link[$groupmenu[$keysommaire]][$z])) { 966 //il faut !== car si 8 est en première position, strpos retourne 0 (qui est différent de false, mais != ne fait pas la différence) 967 $linkclass=" class=\"sommaire_hidden\""; 968 } 969 else { 970 $linkclass=""; 971 } Can anyone explain why this error exists, The whole script seems to be using Multi-Dimensional Arrays??????? This is just one of many errors but If someone could help me understand this one I may be able to figure out the rest. I have also attached the complete script in case it is needed. Thanks [attachment deleted by admin]
  4. the file is fairly big so i have attached it [attachment deleted by admin]
  5. ? this makes no sense to me $themeImageValues["themeName"][$x]
  6. im wondering if someone could have a look at this and point out what is wrong, it keeps giving the following notice PHP Notice: Undefined variable: themeName0 PHP Notice: Undefined variable: blockArrowColorTheme0 PHP Notice: Undefined variable: blockBackgroundImageTheme0 case "themeImageSubmit": for ($x = 0; $x <= $totalThemes; $x++) { $themeImageValues["themeName"][$x] = ${"themeName$x"}; $themeImageValues["${"themeName$x"}"]["blockArrowColor"] = ${"blockArrowColorTheme$x"}; $themeImageValues["${"themeName$x"}"]["blockBackgroundImage"] = ${"blockBackgroundImageTheme$x"}; } themeImageSubmit($themeImageValues, $totalThemes); break;
  7. i ran print_r, as removing the quotes didnt help and it outputted the following Array ( [0] => )
  8. has anything changed with mktime in php5. as i seem to be getting some errors now.Unfortunately ive always sucked at unix + time lol i have read the manual on it but i just cant understand it ive posted the whole code but the problem lies on line 1294 and here is line 1294 $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); The complete is attached in case it is needed. Is anyone able to point me in the right direction. [attachment deleted by admin]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.