Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Bug PHP-Fusion 6.01.12: polls_archive.php


Print Track
Hi, I just found another little bug:

Line 39:
CodeDownload  
   $data = dbquery("SELECT * FROM ".$db_prefix."polls WHERE poll_id='$viewpoll_id' AND poll_ended!='0'");



should be

CodeDownload  
   $result = dbquery("SELECT * FROM ".$db_prefix."polls WHERE poll_id='$viewpoll_id' AND poll_ended!='0'");




And I hope, you got my PM:

Quote

The register.php of the Update-Package is not uptodate. Only the register.php of the Full-Package is uptodate!!

The file of the update- pack is from 18.10.07 16:29 and the file from the Full-package from 19.10.07 13:43


Digi, please update again :)

7 replies

This works OK for polls_archive.php

Thanks slaughter.
no problem ;)
it's right in CVS ChangeLog, but dunno why it different with the code browser though ~_~

in ChangeLog :
Replaced Line 38 with:
CodeDownload  
$result = dbquery("SELECT * FROM ".$db_prefix."polls WHERE poll_id='".$_POST['viewpoll_id']."' AND poll_ended!='0'");
if (dbrows($result)) {
   $data = dbarray($result);



in the code browser show different :
CodeDownload  
$data = dbquery("SELECT * FROM ".$db_prefix."polls WHERE poll_id='$viewpoll_id' AND poll_ended!='0'");
if (dbrows($result)) {
$data = dbarray($result);

Did somebody from the PHP-Fusion Crew update the package???
I did not read anything in the news or news comments!
Digitanium
Last Visit: Oct 19 2007 at 15:24:45
:|
Thanks slaughter.
author Basti
forumBugs and Errors - 6
replies8 posts
viewed17,309 times
activeLast updated on 12 years ago
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.