news display broken in 0.4.3
Status: Beta
Brought to you by:
i112syw1
The newsdisplay is broken in 0.4.1 - 0.4.3 . Reason: a duplicate sql query where only one should be. To correct this find in include/pagetool.inc the following lines:
######
} elseif ( $mygoog == "myphpPagetool_news" ) { /* show the selected newsentry */
include($ptconf["include"] . "/pt_header.inc");
if ($news_id == "all")
{
$newsquery = "select * from newstab";
} else {
$newsquery = "select * from newstab where NID=$news_id";
}
$my_result = pt_query($newsquery);
### delete or uncomment the NEXT line !!
$my_result = pt_query("select * from newstab where NID=$news_id");
---
That's it.