Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wystepujący Notice
qba10
post
Post #1





Grupa: Zarejestrowani
Postów: 264
Pomógł: 20
Dołączył: 19.08.2007
Skąd: Bryńsk k. Lidzbarka Welskiego (nie mylić z Warmińskim)

Ostrzeżenie: (0%)
-----


Witam
Mógłby mi ktoś wytłumaczyć, dlaczego wyskakuje mi Notice:
Kod
Notice: Uninitialized string offset: 1 in /var/www/html/qbix/kernel/class/MenadzerSesji.class.php  on line 197


  1. private function KonfrontujWersje($wersjaMinOrMax, $wersjaProgramu, $MinOrMax, $lvl = 0) {
  2. if (!isset ($wersjaMinOrMax[$lvl]) and isset ($wersjaProgramu[$lvl])) {
  3. $wersjaMinOrMax[$lvl] = 0;
  4. }
  5. if (isset ($wersjaMinOrMax[$lvl]) and !isset ($wersjaProgramu[$lvl])) {
  6. $wersjaProgramu[$lvl] = 0;
  7. }
  8. /*linia 197*/ if ($wersjaProgramu[$lvl] == $wersjaMinOrMax[$lvl] and !isset($wersjaMinOrMax[$lvl++]) and !isset($wersjaProgramu[$lvl++])) {
  9. return true;
  10. }
  11. if ($MinOrMax == "min") {
  12. echo "$lvl ---- ". $wersjaMinOrMax[$lvl] ."<=". $wersjaProgramu[$lvl]."<br />";
  13. if ($wersjaMinOrMax[$lvl] <= $wersjaProgramu[$lvl]) {
  14. $wynik = $this-> KonfrontujWersje($wersjaMinOrMax[$lvl], $wersjaProgramu[$lvl], "min", $lvl++);
  15. if ($wynik == true) {
  16. return true;
  17. } else {
  18. return false;
  19. }
  20. } else {
  21. return false;
  22. }
  23. }
  24.  
  25. }

poza tym notice skrypt się wykonuję dobrze...


--------------------
Qbix Media Project - Prosty Multiplatformowy Odtwarzacz Muzyki
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 04:06