method name in wfDebug
[lhc/web/wiklou.git] / trackback.php
index ae1e32b..6d2d826 100644 (file)
@@ -50,7 +50,7 @@ $tbname = $_POST['blog_name'];
 $tbarticle = $_REQUEST['article'];
 
 $title = Title::newFromText($tbarticle);
-if (!$title->exists())
+if (!isset($title) || !$title->exists())
        XMLerror("Specified article does not exist.");
 
 $dbw->insert('trackbacks', array(