6.0.0-beta1
8/7/25

[#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 (7045 days ago)
Due
Updated 04/24/2006 (7045 days ago)
Assigned
Resolved 04/24/2006 (7045 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/24/2006 08:48:56 AM 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 04:36:51 AM 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 04:35:33 AM 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).

Saved Queries