hab folgendes Problem aber nur bei zwei Artikeln
Notice: Undefined offset: 0 in /home/www/webxxx/html/xxxxxx/redaxo/include/classes/class.ooredaxo.inc.php on line 151
Hab schon alles mögliche probiert finde aber den Fehler nicht
trat auf nachdem ich ein Modul getestet hab
Hab das modul wieder gelösch der Fehler ist aber noch da
REDAXO: 4.5.1
PHP: 5.4.36
Die Modulausgabe sah wie Folgt aus:
Code: Alles auswählen
<?php
// OOArticel werden gespeichert
$out = '';
$article_list = array();
// Artikeldaten holen
if ('REX_LINKIST[1]' != ''){
$arr = explode(',','REX_LINKLIST[1]');
foreach ($arr as $value) {
$article_dat = OOArticle::getArticleById($value);
$article_list[] = $article_dat;
}
foreach ($article_list as $article){
// Ueberschrift
$hdl = '';
$hdl = $article->getValue('art_teaser_hdl');
if ($hdl == '') $hdl = $article->getName();
// Bild
$file = $article->getValue('art_teaser_file');
// Beschreibung
$desc = $article->getValue('art_teaser_text');
// Link nur anzeigen, wenn Checkbox deaktiviert ist
$link_id = '';
if ($article->getValue('art_teaser_link_more') != '|true|'){
$teaser_link = $article->getValue('art_teaser_link_intern');
if ($teaser_link != '' && $teaser_link > 0)
$link_id = $teaser_link;
else
$link_id = $article->getId();
}
// Ausgabe erzeugen
$file_out = '';
$text_out = '';
if ($file != '' and $hdl != ''){
// Bild auslesen, groesse anpassen und html erzeugen
$file_out .= '<img src="/index.php?rex_img_type=teaser_img&rex_img_file='.$file.'"/>';
// Bild auslesen und html erzeugen
$textile = htmlspecialchars_decode($desc);
$textile = str_replace("<br />", "", $textile);
$textile = rex_a79_textile($textile);
$text_out = '<div class="figure tr-slideInu"><h2>'.$hdl.'</h2>'.$textile.'</div>';
}
$out .= '<li>';
// nur verlinken, wenn weiterlesen Link vorhanden ist
if ($link_id != '')$out .= '<a href="'.rex_getUrl($link_id).'">';
$out .= '<div class="imageBox">';
$out .= $file_out.$text_out;
$out .= '</div>';
if ($link_id != '')$out .= '</a>';
$out .= '</li>';
}
}
echo '<div class="row"><div class="large-12 columns"><ul class="small-block-grid-1 medium-block-grid-2 large-block-grid-3">';
echo $out;
echo '</ul></div></div>';
?>