-
Empty needle Problem
Habe ein weiteres Problem, hoffe ihr könnt mir helfen.
Error Message:
Code:
Warning: strpos(): Empty needle in /homepages/4/d601181328/htdocs/clickandbuilds/ptc/Sources/surfer.php on line 59
Der Ausschnitt wäre folgender:
PHP-Code:
if ($_SESSION['logged'] == "yes") { if (strpos($ad_info['country'], $user_info['country']) === false) { $check_ad = "no"; $error_msg = $lang['txt']['invalidad']; } } }
Die genaue Zeile 59:
PHP-Code:
if (strpos($ad_info['country'], $user_info['country']) === false) {
Ich hatte in irgendeiner Datei mal Country Check entfernt, allerdings entsinne ich mich nicht mehr wirklich.
Alles andere funktioniert auch Reibungslos.
Möglichkeiten dieses zu beheben?
-
AW: Empty needle Problem
http://php.net/manual/de/function.strpos.php
Steht alles in der Fehlermeldung, wo/was das Problem ist. Needle ist in deinem Fall leer, das sollte also vorher überprüft werden.