Frontend unpublish bug

monkeyman
monkeyman
  • monkeyman
  • 10 months ago
There's a small bug with unpublishing polls from front-end. See site/models/polls.php on line 2081:

$query = 'UPDATE #__jcp_polls SET published='.$this->_db->getEscaped($state).' WHERE id='.$this->_db->getEscaped($cid);


This line was the problem with SQL query error. So I changed it to this one:

$query = "UPDATE #__jcp_polls SET published = '".$state."' WHERE id = '".$cid."'";


And now everything works good. Please, check this.

Access to viewing replies is restricted.
Showing 2 of 2 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai