Hallo,
wir haben ein Programm übernommen was wir jetzt betreuen müssen und dort (wenn man die Fehleranzeige anschaltet) sehe ich folgendes:
Da ich noch Anfänger bin und mit Funktionen noch nicht so vertraut bin weis ich nicht was ich tun muss oder soll. Kann da jemand helfen?
hier die Zeilen:
Zeile 38 aus hoteledit.php5
$sResult = $oResult -> sCountryCode;
Zeile 29 aus function
$aVars = get_object_vars($oLocalization);
Zeile 30 aus function
foreach ($aVars as $sKey => $sValue)
Zeile42 aus function
if ($this->sDateFormat =="%d.%m.%Y")
wir haben ein Programm übernommen was wir jetzt betreuen müssen und dort (wenn man die Fehleranzeige anschaltet) sehe ich folgendes:
Notice: Trying to get property of non-object in /documents/hoteledit.php5 on line 38
Warning: get_object_vars() expects parameter 1 to be object, boolean given in /documents/inc/class.localization.inc on line 29
Warning: Invalid argument supplied for foreach() in /documents/inc/class.localization.inc on line 30
Notice: Undefined property: Localization::$sDateFormat in /documents/inc/class.localization.inc on line 42
Warning: get_object_vars() expects parameter 1 to be object, boolean given in /documents/inc/class.localization.inc on line 29
Warning: Invalid argument supplied for foreach() in /documents/inc/class.localization.inc on line 30
Notice: Undefined property: Localization::$sDateFormat in /documents/inc/class.localization.inc on line 42
hier die Zeilen:
Zeile 38 aus hoteledit.php5
$sResult = $oResult -> sCountryCode;
Zeile 29 aus function
$aVars = get_object_vars($oLocalization);
Zeile 30 aus function
foreach ($aVars as $sKey => $sValue)
Zeile42 aus function
if ($this->sDateFormat =="%d.%m.%Y")
Kommentar