[#3818] "Call to a member function on a non-object" because of typo in sql.php
Summary "Call to a member function on a non-object" because of typo in sql.php
Queue Nag
Queue Version 2.1
Type Bug
State Resolved
Priority 3. High
Owners
Requester hordebugs (at) farcaster (dot) org
Created 04/24/2006 (1599 days ago)
Due
Updated 04/24/2006 (1599 days ago)
Assigned
Resolved 04/24/2006 (1599 days ago)
Attachments nag-21.patch Download
Milestone
Patch No

History
04/24/2006 Jan Schneider Comment #3
State ⇒ Resolved
Reply to this comment
Fixed in CVS and Nag 2.1.1. It's not a bug in HEAD, it just was 
accidentally backported to Nag 2.1.
04/24/2006 hordebugs (at) farcaster (dot) org Comment #2
New Attachment: nag-21.patch Download
Reply to this comment
(grrr... let's try that _with_ the attachment this time.)
04/24/2006 hordebugs (at) farcaster (dot) org Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ "Call to a member function on a non-object" because of typo in sql.php
Queue ⇒ Nag
Reply to this comment
lib/Driver/sql.php - line 428 (function _buildTask):



The query call when generating uids has a typo in it.  Instead of 
$this->_write_db->query(...), it should be $this->_db->query(...).



With the typo, nag throws "Call to a member function on a non-object" 
errors when existing entries don't have uids.



This exists in HEAD as well (according to chora) on line 438 of that 
same file.



Fix attached (diff against nag 2.1).