From: SourceForge.net <no...@so...> - 2012-08-23 15:48:44
|
Bugs item #3560274, was opened at 2012-08-21 04:02 Message generated for change (Settings changed) made by mageg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=430840&aid=3560274&group_id=41586 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core - Core Group: XOOPS 2.6.x Status: Open >Resolution: Fixed Priority: 5 Private: No Submitted By: irmtfan (irmtfan) >Assigned to: Mage Grégory (mageg) Summary: bug in banners module in 2.6 Initial Comment: Fatal error: Call to a member function prefix() on a non-object in /modules/banners/class/renderbanner.php on line 103 to solve this open that file and: replace this: [code] $xoops->db->queryF(sprintf('UPDATE %s SET status = %u, dateend = %u WHERE bid = %u', $this->db->prefix('banner'), 0, time(), $bid)); }else{ $xoops->db->queryF(sprintf('UPDATE %s SET impmade = %u WHERE bid = %u', $this->db->prefix('banner'), $impmade, $bid)); [/code] with this: [code] $xoops->db->queryF(sprintf('UPDATE %s SET status = %u, dateend = %u WHERE bid = %u', $xoops->db->prefix('banner'), 0, time(), $bid)); }else{ $xoops->db->queryF(sprintf('UPDATE %s SET impmade = %u WHERE bid = %u', $xoops->db->prefix('banner'), $impmade, $bid)); [/code] ---------------------------------------------------------------------- Comment By: irmtfan (irmtfan) Date: 2012-08-21 04:08 Message: post in xoops.org forum for discussions: post number 29:http://xoops.org/modules/newbb/viewtopic.php?post_id=348930#forumpost348930 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=430840&aid=3560274&group_id=41586 |