Menu

#3 news display broken in 0.4.3

open
nobody
None
1
2000-11-28
2000-11-28
No

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.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB