Ich bekomme im Backend folgenden Fehler:
Fatal error: Call to a member function on a non-object in /is/htdocs/63347/www.xxx.de/xxx/redaxo/include/classes/c ... c.php(414) : eval()'d code on line 12
Das Modul Ausgabe sieht so aus:
Code: Alles auswählen
<?
if($_POST["function"] == "add")
{
$slid = $GLOBALS[newsql]->last_insert_id;
$reuri = "index.php?page=content&article_id=$_POST[article_id]&mode=edit&slice_id=$slid&function=edit&clang=$_POST[clang]&ctype=$_POST[ctype]#slice$slid";
header("Location: $reuri");
exit;
}
if("REX_LINK_ID[1]" && "REX_VALUE[2]")
{
$REX['SLICEMODE'] = true;
$article = new article("REX_LINK_ID[1]", $REX['CUR_CLANG']);
$article->setCLang($REX['CUR_CLANG']);
$ct = -1;
if("REX_VALUE[2]" == "all")
{
$REX['SLICEMODE'] = false;
if("REX_VALUE[1]"){
$ct = "REX_VALUE[1]";
}
$article->setCtype($ct);
}
else
{
$REX['SLICEMODE'] = false;
$article->getSlice = "REX_VALUE[2]";
}
if(!$REX[GG]){
$master = OOArticle::getArticleByID(REX_LINK_ID[1]);
print '<b>Alias von Artikel <a href="index.php?page=content&article_id=REX_LINK_ID[1]&mode=edit&clang=0">'.$master->getName().'</a></b>';
}
print $article->getArticle($ct);
$REX['GG'] = true;
$REX['SLICEMODE'] = false;
}
?>