Hier auch der komplette code von der Datei (class.holidayweb_util.php) wo mir die Fehlermeldung ausgibt:
<?php
class holidayweb_util
{
function getCat($uid) {
$rsCat = mysql(TYPO3_db,"select title from tx_holidayweb_categories where uid=$uid");
$rowCat = mysql_fetch_array($rsCat);
mysql_free_result($rsCat);
return $rowCat['title'];
}
function getCatMarkList($uid) {
$rsCat = mysql(TYPO3_db,"select title from tx_holidayweb_categories where uid=$uid");
$rowCat = mysql_fetch_array($rsCat);
mysql_free_result($rsCat);
$charLength = strlen($rowCat['title']);
switch($charLength) {
case 1:
return '*';
break;
case 2:
return '**';
break;
case 3:
return '***';
break;
case 4:
return '****';
break;
case 5:
return '*****';
break;
default:
return '';
}
}
function getType($uid,$lang=0) {
$rsCat = mysql(TYPO3_db,"select title from tx_holidayweb_types where (uid=$uid or l10n_parent=$uid) and sys_language_uid=".$lang);
$rowCat = mysql_fetch_array($rsCat);
mysql_free_result($rsCat);
return $rowCat['title'];
}
function getRegion($uid,$lang=0) {
$rsCat = mysql(TYPO3_db,"select title from tx_holidayweb_regions where (uid=$uid or l10n_parent=$uid) and sys_language_uid=".$lang);
$rowCat = mysql_fetch_array($rsCat);
mysql_free_result($rsCat);
return $rowCat['title'];
}
function getTheme($uid,$lang=0) {
$rsCat = mysql(TYPO3_db,"select title from tx_holidayweb_themes where (uid=$uid or l10n_parent=$uid) and sys_language_uid=".$lang);
$rowCat = mysql_fetch_array($rsCat);
mysql_free_result($rsCat);
return $rowCat['title'];
}
function getAccoTitle($uid,$lang=0) {
$rsCat = mysql(TYPO3_db,"select title from tx_holidayweb_accommodations where (uid=$uid or l10n_parent=$uid) and sys_language_uid=".$lang);
$rowCat = mysql_fetch_array($rsCat);
mysql_free_result($rsCat);
return $rowCat['title'];
}
function populateDay($sel='') {
$string = '';
if($sel == '') {
$sel = date("j");
}
for($i=1; $i <= 31; $i++) {
if($i==$sel) {
$string .= '<option value="'.$i.'" selected>'.$i.'</option>';
}
else {
$string .= '<option value="'.$i.'">'.$i.'</option>';
}
}
return $string;
}
function populateMonth($sel='') {
$string = '';
if($sel == '') {
$sel = date("n");
}
for($i=1; $i <= 12; $i++) {
if($i==$sel) {
$string .= '<option value="'.$i.'" selected>'.$i.'</option>';
}
else {
$string .= '<option value="'.$i.'">'.$i.'</option>';
}
}
return $string;
}
......
?>